|
Diamond Control Suite 3.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
diamondedge.swing.DsSlidingTabBar
public class DsSlidingTabBar
| Nested Class Summary | |
|---|---|
static class |
DsSlidingTabBar.ButtonGroup
|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
DsSlidingTabBar()
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
|
void |
addActionGroupChangeListener(ActionGroupChangeListener l)
Adds an ActionGroupChangeListener that will be triggered whenever
the current group (tab) is changed to a new group. |
DsActionGroup |
addGroup(int index,
String key,
String title)
|
DsActionGroup |
addGroup(String title,
Icon icon,
String tooltip)
|
void |
clear()
Removes all groups from the component. |
protected DsActionGroup |
createGroup(String title,
Icon icon,
String tooltip,
int alignmentHor,
ActionListener l)
Create a new group. |
DsActionGroup |
getCurrentGroup()
Returns the current selected action group. |
DsActionGroup |
getGroup(int index)
|
DsActionGroup |
getGroup(String key)
|
int |
getGroupCount()
Returns the number of groups in the collection. |
int |
getHorizontalAlignment()
Returns the horizontal alignment of the contents (text and icon) of each tab. |
void |
removeActionGroupChangeListener(ActionGroupChangeListener l)
Removes an ChangeListener from this component. |
DsActionGroup |
removeGroup(int index)
|
DsActionGroup |
removeGroup(String key)
|
void |
setGroupCount(int val)
Sets the number of groups in the collection. |
void |
setHorizontalAlignment(int align)
Sets the horizontal alignment of the contents (text and icon) of each tab (NavigationComponent). |
void |
setIconAt(int index,
Icon icon)
|
void |
setToolTipTextAt(int index,
String tooltip)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DsSlidingTabBar()
| Method Detail |
|---|
public int getGroupCount()
public void setGroupCount(int val)
public DsActionGroup getCurrentGroup()
public DsActionGroup getGroup(int index)
public DsActionGroup getGroup(String key)
public DsActionGroup removeGroup(int index)
public DsActionGroup removeGroup(String key)
public void clear()
public DsActionGroup addGroup(int index,
String key,
String title)
public DsActionGroup addGroup(String title,
Icon icon,
String tooltip)
public void setIconAt(int index,
Icon icon)
public void setToolTipTextAt(int index,
String tooltip)
public int getHorizontalAlignment()
public void setHorizontalAlignment(int align)
LEFT - contents are left-aligned. CENTER - contents are centered. (Default) RIGHT - contents are right-aligned. LEADING - contents are aligned to the leading edge (at the beginning). (Default) TRAILING- contents are aligned to the trailing edge (at the end).
Note: This is only used during the creation of the groups, so it must be set before any groups are created.
protected DsActionGroup createGroup(String title,
Icon icon,
String tooltip,
int alignmentHor,
ActionListener l)
public void addActionGroupChangeListener(ActionGroupChangeListener l)
ActionGroupChangeListener that will be triggered whenever
the current group (tab) is changed to a new group.
l - the ChangeListener to be addedpublic void removeActionGroupChangeListener(ActionGroupChangeListener l)
ChangeListener from this component.
l - the listener to be removedpublic void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListener
|
Diamond Control Suite 3.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||