Class powersoft.jcm.ui.AWTTabControl
All Packages Class Hierarchy This Package Previous Next Index
Class powersoft.jcm.ui.AWTTabControl
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----powersoft.jcm.ui.AWTTabControl
- public class AWTTabControl
- extends Panel
-
AWTTabControl()
-
-
add(int, String, Object)
-
-
delete(int)
-
-
deleteAll()
-
-
doSetSelected(int, boolean)
-
-
getCount()
-
-
getItem(int)
-
-
getPanel(int)
-
-
getPanels()
-
-
getSelected()
-
-
getTabItems()
- Used by the child windows to access the tab items.
-
getTabSize()
-
-
getText(int)
-
-
getUserData(int)
-
-
handleEvent(Event)
-
-
layout()
-
-
nextPage()
- Selects the next page.
-
positionTabsNow()
- Returns true if it is appropriate to position tabs.
-
previousPage()
- Selects the previous page.
-
reshape(int, int, int, int)
-
-
resizeChildren()
- Resizes the tab and page child windows according to the given
height for the tab window.
-
setFont(Font)
-
-
setPanel(int, Panel)
-
-
setSelected(int)
- Sets the currently selected item and updates the control accordingly.
-
setTabSize(int, int)
-
-
setText(int, String)
-
-
setUserData(int, Object)
-
AWTTabControl
public AWTTabControl()
getCount
public int getCount()
getPanels
public synchronized Panel[] getPanels()
- Returns:
- An array containing all of the panels in the tab control. The
array contains no space and thus the index of a given panel
may not match the id of the panel, although the order of panels
in the array is consistant with the id.
getSelected
public int getSelected()
setSelected
public void setSelected(int id)
- Sets the currently selected item and updates the control accordingly.
- Parameters:
- id - The id of the item to be selected.
getTabSize
public synchronized Dimension getTabSize()
setTabSize
public synchronized void setTabSize(int width,
int height)
getPanel
public synchronized Panel getPanel(int id)
setPanel
public synchronized void setPanel(int id,
Panel panel)
getText
public synchronized String getText(int id)
setText
public synchronized void setText(int id,
String text)
getUserData
public synchronized Object getUserData(int id)
setUserData
public synchronized void setUserData(int id,
Object userData)
add
public synchronized void add(int id,
String text,
Object userData)
delete
public synchronized boolean delete(int id)
deleteAll
public synchronized boolean deleteAll()
nextPage
public void nextPage()
- Selects the next page.
previousPage
public void previousPage()
- Selects the previous page.
handleEvent
public boolean handleEvent(Event e)
- Overrides:
- handleEvent in class Component
layout
public synchronized void layout()
- Overrides:
- layout in class Container
reshape
public synchronized void reshape(int x,
int y,
int width,
int height)
- Overrides:
- reshape in class Component
setFont
public synchronized void setFont(Font f)
- Overrides:
- setFont in class Component
getItem
protected TabItem getItem(int id)
doSetSelected
protected synchronized void doSetSelected(int id,
boolean fireEvent)
positionTabsNow
protected boolean positionTabsNow()
- Returns true if it is appropriate to position tabs.
getTabItems
protected synchronized TabItem[] getTabItems()
- Used by the child windows to access the tab items.
resizeChildren
protected synchronized void resizeChildren()
- Resizes the tab and page child windows according to the given
height for the tab window.
All Packages Class Hierarchy This Package Previous Next Index