|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.smardec.asc.animatepanel.JAnimateTab
A tab that used by JAnimatePanel
to show user defined component.
Constructor Summary | |
JAnimateTab(java.lang.String text,
javax.swing.Icon icon)
Creates tab with with initial header text and icon. |
|
JAnimateTab(java.lang.String text,
javax.swing.Icon icon,
java.awt.Component component)
Creates tab with with initial header text, icon and user defined component. |
Method Summary | |
void |
addComponent(java.awt.Component component)
Adds user defined component which will be displayed on this tab. |
JAnimatePanel |
getAnimatePanel()
Returns the parent JAnimatePanel of this tab. |
java.awt.Component |
getComponent()
Returns user defined component which is displayed on this tab. |
javax.swing.Icon |
getIcon()
Returns tab header's icon. |
java.lang.String |
getText()
Returns tab header's text. |
boolean |
isSelected()
Returns the state of the JAnimateTab . |
void |
removeComponent()
Removes user defined component from this JAnimateTab . |
void |
setIcon(javax.swing.Icon icon)
Specifies tab header's icon. |
void |
setSelected(boolean selected)
Specifies the state of the JAnimateTab . |
void |
setText(java.lang.String text)
Specifies tab header's text. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JAnimateTab(java.lang.String text, javax.swing.Icon icon, java.awt.Component component)
text
- the text of the tab headericon
- the Icon image to display on the tab headercomponent
- user defined component which will be displayed on this tabpublic JAnimateTab(java.lang.String text, javax.swing.Icon icon)
text
- the text of the tab headericon
- the Icon image to display on the tab headerMethod Detail |
public java.lang.String getText()
setText(String)
public void setText(java.lang.String text)
text
- tab header's text.getText()
public javax.swing.Icon getIcon()
setIcon(javax.swing.Icon)
public void setIcon(javax.swing.Icon icon)
icon
- tab header's icon.getIcon()
public boolean isSelected()
JAnimateTab
. True if the JAnimateTab
is selected, false if it's not
true
if this JAnimateTab
is selected, false
otherwisepublic void setSelected(boolean selected)
JAnimateTab
. Note that this method does not trigger an event.
Invoke JAnimatePanel.showTab(int)
or JAnimatePanel.hideTab(int)
to perform a programmatic state change.
selected
- true
if this JAnimateTab
is selected, false
otherwisepublic JAnimatePanel getAnimatePanel()
JAnimatePanel
of this tab.
JAnimatePanel
of this tab.public java.awt.Component getComponent()
public void addComponent(java.awt.Component component)
component
- the component to be addedpublic void removeComponent()
JAnimateTab
.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |