|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.smardec.asc.outlookpanel.JOutlookTab
A tab that used by JOutlookPanel to show user defined outlook buttons.
| Constructor Summary | |
JOutlookTab(java.lang.String text,
javax.swing.Icon icon)
Creates tab with with initial header text and icon. |
|
| Method Summary | |
void |
addButton(int index,
JOutlookButton jOutlookButton)
Inserts the specified button at the specified position in this JOutlookTab. |
void |
addButton(JOutlookButton jOutlookButton)
Appends the specified button to the end of this JOutlookTab. |
int |
getButtonCount()
Returns the number of buttons in this JOutlookTab. |
int |
getButtonIndex(JOutlookButton jOutlookButton)
Returns the index of the specified button, or -1 if this JOutlookTab does not contain this button. |
javax.swing.Icon |
getIcon()
Returns tab header's icon. |
JOutlookPanel |
getOutlookPanel()
Returns the parent JOutlookPanel of this tab. |
JOutlookButton |
getTab(int index)
Returns the button at the specified position in this JOutlookTab. |
java.lang.String |
getText()
Returns tab header's text. |
boolean |
isSelected()
Returns the state of the JOutlookTab. |
void |
removeButton(int index)
Removes the button at the specified position in this JOutlookTab. |
void |
setIcon(javax.swing.Icon icon)
Specifies tab header's icon. |
void |
setSelected(boolean selected)
Specifies the state of the JOutlookTab. |
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 JOutlookTab(java.lang.String text,
javax.swing.Icon icon)
text - the text of the tab headericon - the Icon image to display on the tab header| Method Detail |
public int getButtonCount()
JOutlookTab.
JOutlookTab.public JOutlookButton getTab(int index)
JOutlookTab.
index - index of button to return.
JOutlookTab
java.lang.IllegalArgumentException - index is out of range (index < 0 || index >= getButtonCount()).public int getButtonIndex(JOutlookButton jOutlookButton)
JOutlookTab does not contain this button.
jOutlookButton - an JOutlookButton.
JOutlookTab.
public void addButton(int index,
JOutlookButton jOutlookButton)
JOutlookTab.
Shifts the button currently at that position (if any) and any subsequent buttons to the bottom
(adds one to their indices).
index - index at which the specified button is to be insertedjOutlookButton - a button to be insertedremoveButton(int)public void addButton(JOutlookButton jOutlookButton)
JOutlookTab.
jOutlookButton - button to be appended to this JOutlookTabremoveButton(int)public void removeButton(int index)
JOutlookTab.
Shifts any subsequent buttons to the top (subtracts one from their indices).
index - the button that was removedaddButton(int, JOutlookButton),
addButton(JOutlookButton)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()
JOutlookTab. True if the JOutlookTab is selected, false if it's not
true if this JOutlookTab is selected, false otherwisepublic void setSelected(boolean selected)
JOutlookTab. Note that this method does not trigger an event.
Invoke JOutlookPanel.setSelectedTabIndex(int) or JOutlookPanel.setSelectedTabIndex(int, int) to perform a programmatic state change.
selected - true if this JOutlookTab is selected, false otherwisepublic JOutlookPanel getOutlookPanel()
JOutlookPanel of this tab.
JOutlookPanel of this tab.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||