public class GMultipleStructureChoice extends GPanel implements GListener
GPanel.Panel, GPanel.ScrollBarVisibility
GComponent.CopyPasteOperation, GComponent.DisplayIndicatorStatus, GComponent.ItemType, GComponent.Operation
NAME_ATTRIBUTE
Constructor and Description |
---|
GMultipleStructureChoice(String filename,
GComponent component)
Constructor .The widget identifier is created automatically
|
GMultipleStructureChoice(String filename,
GComponent component,
boolean useComponentName)
Constructor .The widget identifier is created automatically
|
GMultipleStructureChoice(String widgetId,
String filename,
GComponent component)
Constructor .The widget identifier is created automatically
|
GMultipleStructureChoice(String widgetId,
String filename,
GComponent component,
boolean useComponentName)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
after(GEvent e)
Called after the event is processed.
|
void |
before(GEvent e)
Called before the event is processed.
|
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 |
generic()
Abstract generic function that need to be implemented by the descendants.
|
GTree |
getGTree()
Return the GTree component.
|
TreeNode |
getRoot()
get the root node of the GTree
|
boolean |
isEnabled()
Gets the enable status of the widget.
|
boolean |
isExpanded()
check if the jtree is expanded ( for the GMultipleStructure, there is just one level of children
|
void |
setEnabled(boolean flag)
Set the enable status of the component.
|
void |
setVisible(boolean flag)
visibility of the component
|
clearConstraint, getClassConstraint, getComponent, getHorizontalScroll, getInnerDescendantClassConstraint, getJPanel, getJScrollPane, getLayoutConstraints, getStringClassConstraint, getVerticalScroll, mainClear, mainDisplay, processMouseWheelEvent, put, setClassConstraint, setColumnConstraints, setConstraint, setDefaultConstraints, setHorizontalScroll, setInnerDescendantClassConstraint, setLayoutConstraints, setMargins, setPanelConstraints, setPreferredSize, setRowConstraints, setUnitIncrement, setVerticalScroll, unput
activateConstraintsByType, attachCopyPasteMenu, attachCopyPasteMenu, beginOfElement, beginOfElement, beginOfElement, beginOfElement, clearAllInnerDescendantConstraint, clearInnerDescendantContraint, composeWidgetId, doDisplay, endOfElement, getCommentInConfigFile, getConstraint, getCurrentOperation, getDisplayIndicatorStatus, getDisplayIsModifiedIndicator, getElement, getGClassName, getGPanel, getGParent, getGUnitInConfigFile, getInnerDescendantConstraint, getName, getNameInConfigFile, getOperationSaveValue, getPathInConfigFile, getSimpleWidgetId, getStatus, getStringConstraint, getSubComponent, getWidgetId, handleCopyPasteEvent, handleCopyPasteEvent, handleProcessEventException, isCopyPasteEvent, isForcedStatus, isModified, launchInvalidPositionException, mouseWheelMoved, parseSimpleConstraint, processGEvent, setBusyCursor, setCommentInConfigFile, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, 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 GMultipleStructureChoice(String filename, GComponent component) throws GException
filename
- of the configuration file.component
- to compare with objects in the configuration fileGException
- in case there is a problem with the configuration filepublic GMultipleStructureChoice(String widgetId, String filename, GComponent component) throws GException
widgetId
- widget identifierfilename
- of the configuration file.component
- to compare with objects in the configuration fGException
- in case there is a problem with the configuration filepublic GMultipleStructureChoice(String filename, GComponent component, boolean useComponentName) throws GException
filename
- of the configuration file.component
- to compare with objects in the configuration fuseComponentName
- true if the name of the component is used to filter the research.GException
- in case there is a problem with the configuration filepublic GMultipleStructureChoice(String widgetId, String filename, GComponent component, boolean useComponentName) throws GException
widgetId
- widget identifierfilename
- of the configuration file.component
- to compare with objects in the configuration fileuseComponentName
- true if the name of the component is used to filter the research.GException
- in case there is a problem with the configuration filepublic GTree getGTree()
public TreeNode getRoot()
public boolean isEnabled()
GComponent
isEnabled
in class GComponent
public boolean isExpanded()
public void setEnabled(boolean flag)
GComponent
setEnabled
in class GComponent
flag
- new enable status of the component.public void setVisible(boolean flag)
flag
- booleanpublic void before(GEvent e) throws GException
before
in interface GListener
e
- event to processed.GException
- in case there is a problem managing the event.public void after(GEvent e) throws GException
after
in interface GListener
e
- processed event.GException
- in case there is a problem managing the event.public void display() throws GException
GDisplay
display
in interface GDisplay
GException
- in case of problem while reading the value from file.public void generic() throws GException
GPanel
generic
in class GPanel
GException
- in case of problem.Copyright © 2024. All rights reserved.