|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.ui.ControlBase
ewe.ui.Control
ewe.ui.Container
ewe.ui.Canvas
ewe.ui.Panel
ewe.ui.CellPanel
ewe.ui.mTabbedPanel
This is a Tabbed Panel with tab selectors placed at the top of the panel. Left and right scroll buttons are automatically provided should the tabs not fit completely in the tab selector area.
mTabbedPanels generate a DataChange event when their selected item is changed.
| Field Summary | |
CardPanel |
cardPanel
This does the actual MultiPanel work. |
boolean |
dontExpandTabs
If this is true, then the tabs are not expanded to show both the icon AND the text when selected. |
boolean |
dontFocusOnNextSelect
Set this true if you dont want the focus to move to the Card on the next select(). |
Control |
extraControlsLeft
This is initially null. |
Control |
extraControlsRight
This is initially null. |
protected mButton |
left
|
boolean |
noScrollButtons
This is false by default - set it true so that the left/right scroll buttons are never seen. |
protected mButton |
right
|
int |
tabLocation
This should be NORTH/SOUTH/EAST/WEST (but only NORTH/SOUTH are currently supported) |
protected ewe.ui.TabsPanel |
tabs
|
protected CellPanel |
top
|
| Fields inherited from class ewe.ui.CellPanel |
autoSpan, equalHeights, equalWidths, layout, mySplitter, nextSplitter, quickRecalculate |
| Fields inherited from class ewe.ui.Panel |
all, backgroundImage, calculated, childListeners, defaultAddToMeCellConstraints, defaultTags, grid, lastAdded, layoutManager, made, noInsets, stretchFirstColumn, stretchFirstRow, stretchLastColumn, stretchLastRow, titleGap |
| Fields inherited from class ewe.ui.Canvas |
isFullScrollClient, origin, scrollPercent, virtualSize |
| Fields inherited from class ewe.ui.Container |
closedFocus, cycleFocus, dontAutoScroll, dontFocusOnChildren |
| Fields inherited from class ewe.ui.Control |
_debug, backGround, beforeRemoved, borderColor, borderStyle, borderWidth, children, columns, constraints, DoPaintMethod, dragging, dragResolution, dragTime, exitKeys, fieldTransfer, font, foreGround, haveNativePaint, height, holdDownPause, holdTick, hotKey, image, lastSelected, listeners, maxHeight, maxWidth, menuState, minHeight, minWidth, modifiers, MyClass, name, next, np, parent, penStatus, popupSound, popupSoundClip, preferredHeight, preferredWidth, prev, prompt, promptControl, rows, ss, standardBorder, standardEdge, startDragResolution, tags, tail, text, toolTip, width, x, y |
| Fields inherited from class ewe.ui.ControlBase |
clipItems, clipObject, clipOwner, curPoint, currentPenEvent, debugControl, debugFlag, DidHoldDown, doubleBuffer, doubleClickTime, firstPress, globalDrawFlat, globalEditable, globalEnabled, globalPalmStyle, globalSmallControls, GotPenDown, PenIsOn, pressPoint, TAG_LAST_USER_DATA, TAG_USER_DATA, TAKE_FIRST_PRESS, unnamed, useNativeTextInput |
| Fields inherited from interface ewe.ui.CellConstants |
BORDER, BOTTOM, CELLFLAG, CELLMASK, CENTER, CONTROLMASK, DONTCHANGE, DONTFILL, DONTSTRETCH, EAST, FILL, FIXEDSIZE, GROW, HCENTER, HCONTRACT, HEXPAND, HFILL, HGROW, HSHRINK, HSTRETCH, INITIALLY_CLOSED, INITIALLY_MINIMIZED, INITIALLY_PREFERRED_SIZE, INSETS, LEFT, MAXIMUMSIZE, MINIMUMSIZE, NORTH, NORTHEAST, NORTHWEST, PREFERREDSIZE, RECT, RIGHT, SHRINK, SOUTH, SOUTHEAST, SOUTHWEST, SPAN, STRETCH, TEXTSIZE, TOP, VCENTER, VCONTRACT, VEXPAND, VFILL, VGROW, VSHRINK, VSTRETCH, WEST |
| Fields inherited from interface ewe.ui.IScroll |
Higher, Horizontal, Lower, OPTION_INDICATOR_ONLY, PageHigher, PageLower, ScrollHigher, ScrollLower, TrackTo, Vertical |
| Fields inherited from interface ewe.ui.UIConstants |
BDR_DOTTED, BDR_INNER, BDR_NOBORDER, BDR_OUTER, BDR_OUTLINE, BDR_RAISEDINNER, BDR_RAISEDOUTER, BDR_SUNKENINNER, BDR_SUNKENOUTER, BF_BOTTOM, BF_BOTTOMLEFT, BF_BOTTOMRIGHT, BF_BUTTON, BF_DIAGONAL, BF_DIAGONAL_ENDBOTTOMLEFT, BF_DIAGONAL_ENDBOTTOMRIGHT, BF_DIAGONAL_ENDTOPLEFT, BF_DIAGONAL_ENDTOPRIGHT, BF_EXACT, BF_FLAT, BF_LEFT, BF_MIDDLE, BF_MONO, BF_PALM, BF_RECT, BF_RIGHT, BF_SOFT, BF_SQUARE, BF_TOP, BF_TOPLEFT, BF_TOPRIGHT, EDGE_BUMP, EDGE_ETCHED, EDGE_RAISED, EDGE_SUNKEN |
| Fields inherited from interface ewe.ui.ControlConstants |
All, AlwaysEnabled, AlwaysRecalculateSizes, ByDeferredMouse, ByDeferredPen, ByFrameChange, ByKeyboard, ByMouse, ByPen, ByRequest, CalculatedSizes, Disabled, DisablePopupMenu, DisplayOnly, Down, DrawFlat, Flag, ForceResize, HasData, Invisible, KeepImage, KeepSIP, Left, MakeMenuAtLeastAsWide, Maximize, Minimize, MouseSensitive, NoFocus, NotAnEditor, NotEditable, PaintDataOnly, PaintOutsideOnly, PenTransparent, PreferredSizeOnly, Right, SendUpKeyEvents, SendUpPenEvents, ShowSIP, ShrinkToNothing, SmallControl, SpecialBackground, TakeControlEvents, TakesKeyFocus, Transparent, Up, WantDrag, WantHoldDown |
| Fields inherited from interface ewe.fx.ImageRefresher |
KEEP_VISIBLE |
| Constructor Summary | |
mTabbedPanel()
|
|
| Method Summary | |
Card |
addCard(Control item,
String tabName,
String longName)
Add a new item to the tabbed panel. |
Control |
addItem(Control item,
String tabName,
String longName)
Add a new item to the tabbed panel. |
protected void |
calculateSizes()
Use this to add a control directly to the CellPanel. |
void |
checkLeftRight()
|
void |
checkLeftRight(boolean dontAutoShift)
|
protected boolean |
doHotKey(Control from,
KeyEvent ev)
This method checks to see if a KeyEvent should be considered the Control's hot-key. |
void |
doPaint(Graphics g,
Rect r)
|
static Object[] |
getExpandingTabbedPanel(boolean above)
Use this to create a self-expanding mTabbedPanel. |
CellPanel |
getExtraControls(boolean isLeft)
This gets a container to put extra controls in. |
CellPanel |
getExtremeControls(boolean isLeft)
This gets a CellPanel to put extra controls in that will be further left or right of the container provided by getExtraControls(). |
protected Control |
getFirstFocus()
|
Card |
getItem(Control item)
This returns a Card object holding information about the item added for the specified control. |
Card |
getItem(int index)
This returns a Card object holding information about the item added at the specified index. |
int |
getItemCount()
This returns the number of items added to the MultiPanel. |
int |
getSelectedItem()
This returns the index for the currently selected item. |
void |
gotFocus(int how)
This can only get focus explicitly - via focusOnTab, or via selectNextTab(). |
void |
lostFocus(int how)
|
void |
make(boolean remake)
This is used to "make" the control before being displayed. |
void |
newSelection()
|
void |
onControlEvent(ControlEvent ev)
|
void |
onKeyEvent(KeyEvent ev)
|
void |
repaintTabs()
|
void |
select(Control item)
This selects for display one of the previously added Controls. |
void |
select(int index)
This selects for display one of the previously added Controls, given the index of the item. |
void |
select(String tabName)
This selects for display one of the previously added Controls, given the short (tab) name for the item. |
void |
selectAndExpand(int which)
|
void |
selectNextTab(boolean forwards,
boolean focusOnTab)
Select the next tab. |
void |
setAutoExpand(SplittablePanel splittablePanel)
Call this AFTER setting the tabLocation to be NORTH or SOUTH (it is NORTH by default), but before doing a make(). |
| Methods inherited from class ewe.ui.CellPanel |
makeLayoutGrid, onEvent, relayout, relayoutMe, removeAll, reShow, resize, resizeTo |
| Methods inherited from class ewe.ui.Panel |
add, addChildListener, addDirectly, addLast, addLast, addNext, addNext, addNext, doBackground, doBorder, endRow, getControlTag, getPreferredSize, getSubControls, isEmpty, layout, remove, removeChildListener, sendToChildListeners, setText |
| Methods inherited from class ewe.ui.Canvas |
canGo, canScreenScroll, checkScrolls, doScroll, fixOrigin, getActual, getBuffer, getCurrent, getDisplayedSize, getMySize, getPercent, getScrollablePanel, getScrollClient, getVisible, getVisibleArea, needScrollBar, onScroll, onSetOrigin, reduceClip, scroll, scroll, scrollToVisible, setOrigin, updateScrollServer |
| Methods inherited from class ewe.ui.Container |
_paintChildren, add, containerHasFocus, dismantle, dismantle, findChild, focusFirst, focusFirst, focusOnContainer, focusOnData, getChildren, getChildrenBackwards, getNextKeyFocus, repaintDataNow, takeFocus, takePromptControl |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode |
| Methods inherited from interface ewe.ui.ScrollClient |
getServer, setServer |
| Field Detail |
public CardPanel cardPanel
public int tabLocation
public Control extraControlsLeft
public Control extraControlsRight
public boolean noScrollButtons
protected ewe.ui.TabsPanel tabs
protected CellPanel top
protected mButton left
protected mButton right
public boolean dontExpandTabs
public boolean dontFocusOnNextSelect
| Constructor Detail |
public mTabbedPanel()
| Method Detail |
public Control addItem(Control item,
String tabName,
String longName)
addItem in interface MultiPanelitem - The item to be addedtabName - The name to appear on the tab.longName - A longer descriptive name for the tab. If this is null it will be set to tabName.
public Card addCard(Control item,
String tabName,
String longName)
item - The item to be addedtabName - The name to appear on the tab.longName - A longer descriptive name for the tab. If this is null it will be set to tabName.
public void select(Control item)
MultiPanel
select in interface MultiPanelpublic void select(String tabName)
MultiPanel
select in interface MultiPanelpublic void select(int index)
MultiPanel
select in interface MultiPanelpublic Card getItem(int index)
MultiPanel
getItem in interface MultiPanelpublic Card getItem(Control item)
MultiPanel
getItem in interface MultiPanelpublic int getSelectedItem()
MultiPanel
getSelectedItem in interface MultiPanelpublic int getItemCount()
MultiPanel
getItemCount in interface MultiPanelprotected Control getFirstFocus()
getFirstFocus in class Containerpublic CellPanel getExtremeControls(boolean isLeft)
isLeft - If the container goes on the left or right.
public CellPanel getExtraControls(boolean isLeft)
public void setAutoExpand(SplittablePanel splittablePanel)
splittablePanel - The SplittablePanel that contains the TabbedPanel.public void make(boolean remake)
Control
make in class CellPanel
public void doPaint(Graphics g,
Rect r)
doPaint in class Controlpublic void checkLeftRight()
public void checkLeftRight(boolean dontAutoShift)
public void selectAndExpand(int which)
public void repaintTabs()
public void newSelection()
public void onControlEvent(ControlEvent ev)
onControlEvent in class Controlpublic void gotFocus(int how)
gotFocus in class Containerpublic void lostFocus(int how)
lostFocus in class Container
public void selectNextTab(boolean forwards,
boolean focusOnTab)
forwards - true to move to the next tab, false to move to the previous one.focusOnTab - true to move or keep the focus on the tabs.
public void onKeyEvent(KeyEvent ev)
onKeyEvent in class Control
protected boolean doHotKey(Control from,
KeyEvent ev)
Control
doHotKey in class Containerprotected void calculateSizes()
CellPanel
calculateSizes in class CellPanelpublic static Object[] getExpandingTabbedPanel(boolean above)
above - set this to true if the mTabbedPanel should be above the CellPanel data, false
if it should be below.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||