public class GTabbedPane extends GComponent implements GDisplay, GReadWrite, ChangeListener, GCondensedStatusInterface, GCondensedIsModifiedInterface
Index | Class | Item | Constraint |
0 | MyPanel | tab0 | "newline , pushx , pushy , growx , growy" |
1 | MyPanel | tab1 | "newline , pushx , pushy , growx , growy" |
... | ... | ... | ... |
i | MyPanel | tabi | "newline , pushx , pushy , growx , growy" |
GComponent.CopyPasteOperation, GComponent.DisplayIndicatorStatus, GComponent.ItemType, GComponent.Operation
NAME_ATTRIBUTE
Constructor and Description |
---|
GTabbedPane()
Constructor by default.
|
GTabbedPane(String name)
Constructor.
|
GTabbedPane(String widgetId,
String name)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addTab(String title,
GPanel panel)
Add a GPanel to the widget.
|
void |
addTab(String title,
GPanel panel,
String tooltip)
Add a GPanel to the widget.
|
void |
addTab(String title,
GPanel panel,
String tooltip,
boolean tabPanelStatusFlag)
Add a GPanel to the widget.
|
void |
delTab(int tabIndex)
Remove a tab by its index.
|
void |
display()
Called when the element is to be displayed, so it can perform the actions required for its display, and
the display of its inmmediate descendants.
|
void |
forceIndexesReading(int[] indexes)
force tab orders to read
|
Component |
getComponent()
Returns the low level Swing Component encapsulated by the class if any, otherwise returns
null.
|
JTabbedPane |
getJTabbedPane()
Return the JTabbedPane associated with the widget.
|
GComponent |
getSubComponent(int position)
Gets the subcomponent occupying the position defined by position.
|
GPanel |
getTab(int tabIndex)
Get a tab by its index.
|
int |
getTabCount()
Get the current number of tabs.
|
List<GPanel> |
getTabList()
Get the list of GPanels manager by the GTabbedPane.
|
boolean |
getTabPanelStatusFlag(int tabIndex)
Get the status flag of the tab panel.
|
void |
read()
Implementaion of the routines that allow the component to be loaded from a configuration file.
|
void |
setEnabled(boolean flag)
Set the enable status of the component.
|
static void |
setErrorColor(Color errorColor)
Set the error color.
|
static void |
setErrorIcon(ImageIcon errorIcon)
Set the error icon.
|
void |
setTabPanelStatusFlag(int tabIndex,
boolean tabPanelStatusFlag)
Set the status flag for a the tab panel.
|
void |
setTooltipsList(String[] tooltipsList)
Set a tooltip to each tab in the GTabbedPane.
|
static void |
setWarningColor(Color warningColor)
Set the warning color.
|
static void |
setWarningIcon(ImageIcon warningIcon)
Set the warning icon.
|
void |
stateChanged(ChangeEvent e) |
void |
updateCondensedStatus(GCondensedStatus condensedStatus)
Update a condensed status object with the status of one or more components.
|
void |
updateIsModified(GCondensedIsModified condensedIsModified)
Update a condensed isModified object with the status of one or more components.
|
void |
write()
Implementaion of the routines that allow the component to be saved to a configuration file.
|
activateConstraintsByType, attachCopyPasteMenu, attachCopyPasteMenu, beginOfElement, beginOfElement, beginOfElement, beginOfElement, clearAllInnerDescendantConstraint, clearConstraint, clearInnerDescendantContraint, composeWidgetId, doDisplay, endOfElement, getCommentInConfigFile, getConstraint, getCurrentOperation, getDisplayIndicatorStatus, getDisplayIsModifiedIndicator, getElement, getGClassName, getGPanel, getGParent, getGUnitInConfigFile, getInnerDescendantConstraint, getName, getNameInConfigFile, getOperationSaveValue, getPathInConfigFile, getSimpleWidgetId, getStatus, getStringConstraint, getWidgetId, handleCopyPasteEvent, handleCopyPasteEvent, handleProcessEventException, isCopyPasteEvent, isEnabled, isForcedStatus, isModified, launchInvalidPositionException, mouseWheelMoved, parseSimpleConstraint, processGEvent, processMouseWheelEvent, setBusyCursor, setCommentInConfigFile, setConstraint, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDefaultConstraints, setDisplayIsModifiedIndicator, setElement, setForcedStatus, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setName, setNameAndCommentInConfigFile, setNameInConfigFile, setPathInConfigFile, setStatus, setStringConstraint, setToolTipText, setWidgetId, setWidth, setWindowBusyCursor, updateIsModifiedIndicator, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem
public GTabbedPane()
public GTabbedPane(String name)
name
- in the configuration file.public void addTab(String title, GPanel panel) throws GException
title
- of the tab.panel
- to add.GException
- If there is a problem displaying the added panel.public void addTab(String title, GPanel panel, String tooltip) throws GException
title
- of the tab.panel
- to add.tooltip
- for the tab.GException
- If there is a problem displaying the added panel.public void addTab(String title, GPanel panel, String tooltip, boolean tabPanelStatusFlag) throws GException
title
- of the tab.panel
- to add.tooltip
- for the tab.tabPanelStatusFlag
- true if the status of the tab is updated from the contained GPanel, false otherwise.GException
- If there is a problem displaying the added panel.public void delTab(int tabIndex)
tabIndex
- index of the tab to remove.public GPanel getTab(int tabIndex)
tabIndex
- index of the tab to get.public int getTabCount()
public void setTabPanelStatusFlag(int tabIndex, boolean tabPanelStatusFlag)
tabIndex
- index of the tab panel to set the status flag.tabPanelStatusFlag
- value of the status flag to set.public boolean getTabPanelStatusFlag(int tabIndex)
tabIndex
- index of the tab panel to set the status flag.public void setEnabled(boolean flag)
setEnabled
in class GComponent
flag
- new enable status of the component.public void display() throws GException
display
in interface GDisplay
GException
- in case of problem while reading the value from file.public Component getComponent()
getComponent
in class GComponent
public JTabbedPane getJTabbedPane()
public void read() throws GException
read
in interface GReadWrite
GException
- in case of problem while reading the value from file.public void write() throws GException
write
in interface GReadWrite
GException
- in case of problem while writing the value to file.public void stateChanged(ChangeEvent e)
stateChanged
in interface ChangeListener
public void setTooltipsList(String[] tooltipsList)
tooltipsList
- the list of tooltips for the tabs.public static void setErrorIcon(ImageIcon errorIcon)
errorIcon
- the icon to set for errors.public static void setWarningIcon(ImageIcon warningIcon)
warningIcon
- the icon to set for warnings.public static void setErrorColor(Color errorColor)
errorColor
- the color to set for errors in tabs.public static void setWarningColor(Color warningColor)
warningColor
- the color to set for warnings in tabs.public void updateCondensedStatus(GCondensedStatus condensedStatus)
condensedStatus.update(widget1, widget2, etc)
updateCondensedStatus
in interface GCondensedStatusInterface
condensedStatus
- the condensed status object to be updated.public void updateIsModified(GCondensedIsModified condensedIsModified)
condensedIsModified.update(widget1, widget2, etc)
updateIsModified
in interface GCondensedIsModifiedInterface
condensedIsModified
- the condensed isModified object to be updated.public GComponent getSubComponent(int position) throws GComponentException
getSubComponent
in class GComponent
position
- position of the requested component.GComponentException
- in case the position argument is invalid.public List<GPanel> getTabList()
public void forceIndexesReading(int[] indexes)
indexes
- of the readingCopyright © 2024. All rights reserved.