|
||||||||||
| 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.CardPanel
A CardPanel is a simple implementation of a MultiPanel and it provides no user controls for selecting an item to be displayed. It can be used as the main container for more complex MultiPanel implementations, such as a Tabbed Panel (see mTabbedPanel).
| Field Summary | |
boolean |
autoScroll
If this is true, then the items are placed in ScrollBarPanels before being added to the MultiPanel. |
Vector |
cards
The cards. |
boolean |
clearSipOnChange
If this is set true, then when the displayed control is changed, the SIP will be turned off. |
protected Card |
curCard
Focus on the first control on the active panel. |
boolean |
dontFocusOnNextSelect
Set this true if you dont want the focus to move to the Card on the next select(). |
Control |
focusOnHide
If this is set to a control, then that control will gain the focus if a control within the card panel has the focus, and then the CardPanel is set such that no item is selected (using select(-1)), then the focusOnHide control will be given the focus. |
protected boolean |
gotSize
|
protected boolean |
made
|
int |
selectedItem
The selected card, or -1 if none is selected. |
| 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.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.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.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 | |
CardPanel()
|
|
| Method Summary | |
Control |
addItem(Control item,
String tabName,
String longName)
This adds a control to the MultiPanel with a specified short (Tab) name and optional long name. |
protected void |
calculateSizes()
Override this to calculate the preferred, minimum and maximum size of your control. |
protected Card |
findCard(Control item,
String tabName)
|
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. |
Iterator |
getSubControls()
|
void |
make(boolean remake)
This is used to "make" the control before being displayed. |
protected void |
select(Card who)
|
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. |
protected void |
selectAndPaint(Card c)
|
void |
setRect(int x,
int y,
int width,
int height)
|
void |
shown()
|
| Methods inherited from class ewe.ui.Container |
_paintChildren, add, addDirectly, containerHasFocus, dismantle, dismantle, doHotKey, findChild, focusFirst, focusFirst, focusOnContainer, focusOnData, getChildren, getChildrenBackwards, getNextKeyFocus, gotFocus, lostFocus, remove, removeAll, repaintDataNow, scrollToVisible, takeFocus, takePromptControl |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode |
| Field Detail |
public Vector cards
public int selectedItem
public boolean autoScroll
public Control focusOnHide
public boolean clearSipOnChange
public boolean dontFocusOnNextSelect
protected Card curCard
protected boolean made
protected boolean gotSize
| Constructor Detail |
public CardPanel()
| Method Detail |
public int getSelectedItem()
MultiPanel
getSelectedItem in interface MultiPanelpublic Iterator getSubControls()
getSubControls in class Control
public Control addItem(Control item,
String tabName,
String longName)
MultiPanel
addItem in interface MultiPanel
protected Card findCard(Control item,
String tabName)
protected Control getFirstFocus()
getFirstFocus in class Containerprotected void select(Card who)
protected void selectAndPaint(Card c)
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 getItemCount()
MultiPanel
getItemCount in interface MultiPanelpublic void make(boolean remake)
Control
make in class Controlremake - if this is true then you should do a full re-make.public void shown()
shown in class Controlprotected void calculateSizes()
Control
calculateSizes in class Control
public void setRect(int x,
int y,
int width,
int height)
setRect in class Control
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||