|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.extjs.gxt.ui.client.widget.Component
com.extjs.gxt.ui.client.widget.BoxComponent
com.extjs.gxt.ui.client.widget.Container<Component>
com.extjs.gxt.ui.client.widget.menu.Menu
com.extjs.gxt.desktop.client.StartMenu
public class StartMenu
A start menu component. Menu items can be added to the main region of the start menu, or to the "tool" area, which is located to the right.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
Field Summary | |
---|---|
protected El |
header
|
protected El |
headerText
|
protected java.lang.String |
heading
|
protected java.lang.String |
iconStyle
|
protected El |
menuBWrap
|
protected El |
menuPanel
|
protected java.util.List<Item> |
tools
|
protected El |
toolsPanel
|
protected int |
toolWidth
|
Fields inherited from class com.extjs.gxt.ui.client.widget.menu.Menu |
---|
activeItem, eventPreview, keyNav, parentItem, plain, showSeparator, ul |
Fields inherited from class com.extjs.gxt.ui.client.widget.Container |
---|
attachChildren, enableLayout, layoutExecuted, layoutNeeded, layoutOnAttach, layoutOnChange |
Fields inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
---|
adjustSize, cacheSizes, ensureVisibilityOnSizing, height, lastSize, layer, shim, width |
Fields inherited from class com.extjs.gxt.ui.client.widget.Component |
---|
afterRender, attachables, baseStyle, disabled, disabledStyle, disableTextSelection, dummy, focusable, hidden, mask, maskMessage, maskMessageStyleName, monitorWindowResize, rendered, resizeHandler, setElementRender, stateId, swallowEvents, toolTip, windowResizeDelay, windowResizeTask |
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
StartMenu()
|
Method Summary | |
---|---|
void |
addTool(Item item)
Adds a item to the "tool" area of the start menu. |
void |
addToolSeperator()
Adds a separator to the "too" area. |
protected void |
doAttachChildren()
|
protected void |
doDetachChildren()
|
Component |
findItem(com.google.gwt.user.client.Element elem)
Returns the component whose element, or child element, matches the given element. |
El |
getFocusEl()
|
java.lang.String |
getHeading()
Returns the start menu's heading. |
java.lang.String |
getIconStyle()
Returns the menu's icon style. |
El |
getLayoutTarget()
Returns the container's layout target. |
int |
getToolWidth()
|
protected void |
onRender(com.google.gwt.user.client.Element target,
int index)
Subclasses must override and ensure setElement is called for lazy rendered components. |
protected void |
renderTool(Item tool)
|
void |
setHeading(java.lang.String heading)
Sets the menu's heading text. |
void |
setIconStyle(java.lang.String iconStyle)
Sets the menu's icon style. |
void |
setToolWidth(int toolWidth)
|
void |
show(com.google.gwt.user.client.Element elem,
java.lang.String pos)
Displays this menu relative to another element. |
Methods inherited from class com.extjs.gxt.ui.client.widget.menu.Menu |
---|
add, afterRender, constrainScroll, createComponentEvent, createContainerEvent, createScrollers, deactiveActiveItem, doAutoSize, getDefaultAlign, getMaxHeight, getMinWidth, getParentItem, getSubMenuAlign, hide, hide, insert, isConstrainViewport, isEnableScrolling, isFocusOnShow, isVisible, onAutoHide, onClick, onComponentEvent, onDetach, onEscape, onHide, onInsert, onKeyDown, onKeyUp, onLayoutExcecuted, onMouseMove, onMouseOut, onMouseOver, onRemove, onScroll, onScrollerIn, onScrollerOut, onWindowResize, remove, scrollMenu, setActiveItem, setConstrainViewport, setDefaultAlign, setEnableScrolling, setFocusOnShow, setMaxHeight, setMinWidth, setSubMenuAlign, show, show, showAt, tryActivate |
Methods inherited from class com.extjs.gxt.ui.client.widget.Container |
---|
adjustIndex, adopt, disable, doLayout, doLayout, enable, getItem, getItemByItemId, getItemCount, getItems, getLayout, getWidget, indexOf, isLayoutNeeded, iterator, layout, layout, notifyHide, notifyShow, onAfterLayout, onAttach, onBeforeLayoutExcecuted, orphan, remove, removeAll, removeAll, scrollIntoView, setLayout, setLayoutNeeded, setLayoutOnChange, wrapWidget |
Methods inherited from class com.extjs.gxt.ui.client.widget.BoxComponent |
---|
adjustPosition, adjustSize, getBounds, getHeight, getHeight, getPosition, getPositionEl, getResizeEl, getShadow, getShadowOffset, getShadowPosition, getSize, getWidth, getWidth, hideShadow, hideShim, hideUnders, isAutoHeight, isAutoWidth, isDeferHeight, isShim, onPosition, onResize, onShow, onUnload, setAutoHeight, setAutoWidth, setBounds, setBounds, setDeferHeight, setHeight, setHeight, setPagePosition, setPagePosition, setPixelSize, setPosition, setShadow, setShadowOffset, setShadowPosition, setShim, setSize, setSize, setWidth, setWidth, sync, syncSize |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, setLayoutData |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
addStyleDependentName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, isVisible, removeStyleDependentName, setElement, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, sinkBitlessEvent, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected El header
protected El headerText
protected El menuBWrap
protected El menuPanel
protected El toolsPanel
protected java.lang.String heading
protected java.lang.String iconStyle
protected java.util.List<Item> tools
protected int toolWidth
Constructor Detail |
---|
public StartMenu()
Method Detail |
---|
public void addTool(Item item)
item
- the item to addpublic void addToolSeperator()
public Component findItem(com.google.gwt.user.client.Element elem)
Container
findItem
in class Container<Component>
elem
- the element
null
if no matchpublic El getFocusEl()
getFocusEl
in class Component
public java.lang.String getHeading()
public java.lang.String getIconStyle()
public El getLayoutTarget()
Container
getLayoutTarget
in class Menu
public int getToolWidth()
public void setHeading(java.lang.String heading)
heading
- the headingpublic void setIconStyle(java.lang.String iconStyle)
iconStyle
- the icon stylepublic void setToolWidth(int toolWidth)
public void show(com.google.gwt.user.client.Element elem, java.lang.String pos)
Menu
show
in class Menu
elem
- the element to align topos
- the El.alignTo(com.google.gwt.user.client.Element, java.lang.String, int[])
anchor position to use in aligning to the
element (defaults to defaultAlign)protected void doAttachChildren()
doAttachChildren
in class Container<Component>
protected void doDetachChildren()
doDetachChildren
in class Container<Component>
protected void onRender(com.google.gwt.user.client.Element target, int index)
Component
onRender
in class Menu
target
- the target elementindex
- the insert locationprotected void renderTool(Item tool)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |