public class GSplitPane extends GComponent implements GDisplay, GReadWrite, GClear, GCondensedStatusInterface, GCondensedIsModifiedInterface
| Index | Class | Item | Constraint |
| 0 | MyPanel | leftPanel | "newline , pushx , pushy , growx , growy" |
| 1 | MyPanel | rightPanel | "newline , pushx , pushy , growx , growy" |
GComponent.CopyPasteOperation, GComponent.DisplayIndicatorStatus, GComponent.ItemType, GComponent.OperationNAME_ATTRIBUTE| Constructor and Description |
|---|
GSplitPane()
Constructor by default.
|
GSplitPane(String name,
int newOrientation,
GPanel leftGPanel,
GPanel rightGPanel)
Create a new split pane component with 2 panes, the orientation can be horizontal or vertical.
|
GSplitPane(String widgetId,
String name,
int newOrientation,
GPanel leftGPanel,
GPanel rightGPanel)
Create a new split pane component with 2 panes, the orientation can be horizontal or vertical.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Called when the element is to be cleared, so it can perform the actions required to return to the last
saved/loaded values.
|
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.
|
Component |
getComponent()
Returns the low level Swing Component encapsulated by the class if any, otherwise returns
null.
|
JSplitPane |
getJSplitPane()
Get the swing JSplitPane component.
|
GComponent |
getSubComponent(int position)
Gets the subcomponent occupying the position defined by position.
|
void |
processMouseWheelEvent(MouseWheelEvent e)
Process mouse wheel event.
|
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.
|
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, 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, writeConfigItempublic GSplitPane()
public GSplitPane(String name, int newOrientation, GPanel leftGPanel, GPanel rightGPanel)
name - in the configuration file.newOrientation - JSplitPane.HORIZONTAL_SPLIT or JSplitPane.VERTICAL_SPLITleftGPanel - the GPanel that will appear on the left of a horizontally-split pane, or at the top of a
vertically-split pane.rightGPanel - the GPanel that will appear on the right of a horizontally-split pane, or at the bottom of a
vertically-split pane.public GSplitPane(String widgetId, String name, int newOrientation, GPanel leftGPanel, GPanel rightGPanel)
widgetId - widget identifier.name - in the configuration file.newOrientation - JSplitPane.HORIZONTAL_SPLIT or JSplitPane.VERTICAL_SPLITleftGPanel - the GPanel that will appear on the left of a horizontally-split pane, or at the top of a
vertically-split pane.rightGPanel - the GPanel that will appear on the right of a horizontally-split pane, or at the bottom of a
vertically-split pane.public void setEnabled(boolean flag)
setEnabled in class GComponentflag - new enable status of the component.public void display()
throws GException
display in interface GDisplayGException - in case of problem while reading the value from file.public Component getComponent()
getComponent in class GComponentpublic JSplitPane getJSplitPane()
public void processMouseWheelEvent(MouseWheelEvent e)
processMouseWheelEvent in class GComponente - event to processpublic void read()
throws GException
read in interface GReadWriteGException - in case of problem while reading the value from file.public void write()
throws GException
write in interface GReadWriteGException - in case of problem while writing the value to file.public void updateCondensedStatus(GCondensedStatus condensedStatus)
condensedStatus.update(widget1, widget2, etc)updateCondensedStatus in interface GCondensedStatusInterfacecondensedStatus - the condensed status object to be updated.public void updateIsModified(GCondensedIsModified condensedIsModified)
condensedIsModified.update(widget1, widget2, etc)updateIsModified in interface GCondensedIsModifiedInterfacecondensedIsModified - the condensed isModified object to be updated.public GComponent getSubComponent(int position) throws GComponentException
getSubComponent in class GComponentposition - position of the requested component.GComponentException - in case the position argument is invalid.public void clear()
throws GException
GClearclear in interface GClearGException - in case of problem while clearing the values.Copyright © 2024. All rights reserved.