|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.yospace.yae.yogi.YogiComponent
|
+--com.yospace.yae.yogi.YogiTabbedPane
YogiTabbedPane is the parent container for YogiTabs and their associated TabPanels. YogiTabs are contained within a sliding pane, which automatically scrolls to display the currently focused tab. Activating a tab causes its associated TabPanel to be displayed. TabPanels are contained within a YogiScrollPane, and thus scrollbars are automatically provided if the size of a TabPanel is greater than the space available to it within the YogiTabbedPane.
| Field Summary | |
static int |
PLACEMENT_TAB_BOTTOM
Constant denoting tab placement at the bottom of a tabbed pane |
static int |
PLACEMENT_TAB_LEFT
Constant denoting tab placement at the left of a tabbed pane |
static int |
PLACEMENT_TAB_RIGHT
Constant denoting tab placement at the right of a tabbed pane |
static int |
PLACEMENT_TAB_TOP
Constant denoting tab placement at the top of a tabbed pane |
static int |
PROPERTY_TAB_PLACEMENT
Constant for the tabPlacement property |
static int |
PROPERTY_TAB_SELECTED
Constant for the selectedIndex property |
static int |
PROPERTY_WINGED
Constant for the winged property |
| Constructor Summary | |
YogiTabbedPane()
Default constructor. |
|
| Method Summary | |
void |
actionPerformed(YogiComponent source)
Invoked when an action occurs. |
void |
add(YogiComponent comp)
Override of the YogiComponent.add(YogiComponent) method to ensure
that newly added YogiTabPanels are added to
the sliding pane and the content pane, and are initially set to be invisible. |
YogiScrollPane |
getContentPane()
Returns the tabbed pane's content pane, which is used to display the tab panels and their contents. |
YogiButton |
getLeftWing()
Returns the tabbed pane's left wing. |
YogiButton |
getRightWing()
Returns the tabbed pane's right wing. |
int |
getSelectedIndex()
Returns the currently selected tab index. |
int |
getTabPlacement()
Returns the tab placement of the tabbed pane. |
YogiComponent |
getTabsSlidingPane()
Returns the tabbed pane's sliding pane, which is used to display the tabs. |
boolean |
isWinged()
Returns the tabbed pane's winged state. |
void |
propertyChanged(java.lang.Object source,
int propertyCode)
PropertyChangeListener being implemented to make sure that if a tab of the tabbed pane is pressed that the tabbed pane is relayed out and redrawn. |
void |
remove(YogiComponent comp)
Override of the YogiComponent.remove(YogiComponent) method to ensure
that the component to be removed is removed from the correct section of the YogiTabbedPane, i.e. |
void |
setSelectedIndex(int index)
Sets the selected index of the tabbed pane. |
void |
setTabPlacement(int placement)
Sets the tab placement of the tabbed pane. |
void |
setWinged(boolean winged)
Sets the winged state of the tabbed pane. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int PROPERTY_WINGED
public static final int PROPERTY_TAB_SELECTED
public static final int PROPERTY_TAB_PLACEMENT
public static final int PLACEMENT_TAB_TOP
public static final int PLACEMENT_TAB_BOTTOM
public static final int PLACEMENT_TAB_LEFT
public static final int PLACEMENT_TAB_RIGHT
| Constructor Detail |
public YogiTabbedPane()
| Method Detail |
public void add(YogiComponent comp)
YogiComponent.add(YogiComponent) method to ensure
that newly added YogiTabPanels are added to
the sliding pane and the content pane, and are initially set to be invisible.add in class YogiComponentcomp - the YogiComponent to add to the
tabbed pane.public void remove(YogiComponent comp)
YogiComponent.remove(YogiComponent) method to ensure
that the component to be removed is removed from the correct section of the YogiTabbedPane, i.e. the
content pane.remove in class YogiComponentcomp - the YogiComponent to remove from the
tabbed pane.public YogiComponent getTabsSlidingPane()
public YogiScrollPane getContentPane()
public YogiButton getLeftWing()
public YogiButton getRightWing()
public void setSelectedIndex(int index)
index - The new selected index.public int getSelectedIndex()
public void setWinged(boolean winged)
winged - new winged state.public boolean isWinged()
public void setTabPlacement(int placement)
placement - the placement for the tabs, must be one of
PLACEMENT_TAB_TOP, PLACEMENT_TAB_BOTTOM,
PLACEMENT_TAB_LEFT, or PLACEMENT_TAB_LEFT.public int getTabPlacement()
public void actionPerformed(YogiComponent source)
ActionListeneractionPerformed in interface ActionListenercom.yospace.yae.yogi.ActionListenersource - is the source object that fired the action event.
public void propertyChanged(java.lang.Object source,
int propertyCode)
propertyChanged in interface PropertyChangeListenersource - the object which has had its property value change.propertyCode - the code of the property that has changed.
|
Copyright 2002 Yospace Holdings Ltd. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||