leon.view
Class LyTab
java.lang.Object
leon.view.LyComponent
leon.view.LyTabBase
leon.view.LyTab
- All Implemented Interfaces:
- LyGetIdInterface, LyGetLabelInterface, LySetColorInterface, LySetEnabledInterface
public class LyTab
- extends LyTabBase
- implements LyGetLabelInterface
The LyTab class implements generic behavior for the TAB components as described in views.dtd
regardless of the requested target (win, swing, html...). It represents a tab.
- See Also:
LyComponent
Field Summary |
static java.lang.String |
__VERSION
|
Constructor Summary |
LyTab()
Constructor with all required attributes. |
Method Summary |
int[] |
getBounds(LyComponent parentComponent)
Returns the position and size of current component relatively to given component. |
java.lang.String |
getTargetFormId()
Gets value of targetFormId. |
void |
setEnabled(boolean enabled)
Sets attribute enabled to the given value. |
void |
setLabel(java.lang.String label)
Initializes attribute label to the given value. |
void |
setTargetFormId(java.lang.String targetFormId)
Initializes attribute targetFormId to the given value. |
Methods inherited from class leon.view.LyTabBase |
cloneComponent, getColor, getFont, getFontColor, getId, getImage, getLabel, getPanel, getTemplate, isDefaultColor, isDefaultFont, isDefaultFontColor, isDefaultImage, isEnabled, setColor, setFont, setFontColor, setId, setImage, setPanel, setTemplate, writeXml |
Methods inherited from class leon.view.LyComponent |
addComponent, addData, addEventFunction, clearChildrenBounds, free, freeze, getChild, getChildCount, getChildFromCache, getChildrenBounds, getComponent, getComponent, getComponent, getComponent, getComponent, getComponentAt, getComponentAt, getComponentByInternalId, getComponentByLabel, getComponents, getComponentWithModel, getData, getDatas, getEnvironment, getEventFunctions, getIdCode, getInternalId, getInternalView, getInternalView, getLock, getModel, getParent, getParentArea, getParentForm, getParentFormFieldId, getParentSplitter, getParentSplitter, getParentTab, getParentTab, getParentTabs, getParentTabs, getParentView, getRootController, getSetVisibleParent, getTag, getViewManager, isFreed, isFreeing, registerChildrenBounds, removeComponent, reset, resetChildrenCache, resetEventFunctions, setDatas, setInternalView, setVisible, useEventDefaultFunction, writeXml |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
__VERSION
public static final java.lang.String __VERSION
- See Also:
- Constant Field Values
LyTab
public LyTab()
- Constructor with all required attributes.
setEnabled
public void setEnabled(boolean enabled)
- Sets attribute enabled to the given value.
- Specified by:
setEnabled
in interface LySetEnabledInterface
- Overrides:
setEnabled
in class LyTabBase
- Parameters:
enabled
- Boolean indicating if attribute enabled is set or unset.
setLabel
public void setLabel(java.lang.String label)
- Initializes attribute label to the given value.
- Overrides:
setLabel
in class LyTabBase
- Parameters:
label
- New value of label.
getTargetFormId
public java.lang.String getTargetFormId()
- Gets value of targetFormId.
- Returns:
- value of targetFormId.
setTargetFormId
public void setTargetFormId(java.lang.String targetFormId)
- Initializes attribute targetFormId to the given value.
- Parameters:
targetFormId
- New value of targetFormId.
getBounds
public int[] getBounds(LyComponent parentComponent)
- Returns the position and size of current component relatively to given component.
- Overrides:
getBounds
in class LyComponent
- Parameters:
parentComponent
- the component used to compute relative position of current
component. If null, position of current component is computed with
the top-left corner of the screen as the origin.
- Returns:
- an array of 4 integers (x position, y position, width, height) representing the
position and size of current component.
Website: W4 S.A., contact us: support@w4global.com