public abstract class HTMLMenuBar extends HTMLMenuItem
alignment, alt, cancelBubble, events, gMutableTheme, hasInitFocus, id, intStyleSheet, items, name, parent, styleId, styleProperty, tabIndex, toolTip, VALID_NAME_REGEX, VALID_STYLE_REGEX
Constructor and Description |
---|
HTMLMenuBar(java.lang.String code)
create a menu bar
|
Modifier and Type | Method and Description |
---|---|
void |
addMenu(HTMLMenuItem menu)
set menu to cell
|
protected void |
addMenuBarColorArray(java.lang.String strMenuBarId)
This method is to add rollover script
|
protected abstract void |
addMenus(HTMLPage page,
HTMLTable table,
java.util.ArrayList menuList)
Adds the menus to the menu bar table
|
protected void |
addRolloverScript()
This method is to add rollover script
|
protected void |
compile(ClientBrowser browser)
add HTMLMenuBar to parent HTMLPage
|
java.awt.Color |
getBgColor()
get background color
|
int |
getFullHeight()
get MenuBar's Full Height
|
java.awt.Color |
getHighlightColor()
get highlight
|
java.lang.String |
getMenuCode()
get the Menu code
|
int |
getMenuItemHeight()
get submenu's height
|
int |
getMenuItemWidth()
get submenu's width
|
java.util.ArrayList |
getMenuList()
get Menu list
|
java.awt.Color |
getSelectionColor()
This method is to get selection Color
|
int |
getTimeout()
get menu's timeout
|
boolean |
isOpen()
get if the menubar is open
|
void |
setBgColor(java.awt.Color bgColor)
set background color
|
void |
setBorderColor(java.awt.Color borderColor)
set border Color
|
void |
setBorderStyle(java.lang.String borderStyle)
set border style
|
void |
setBorderWidth(int borderWidth)
set border width
|
protected void |
setDivBorder(HTMLDiv div)
This method is to set menu div's border
|
void |
setHighlightColor(java.awt.Color highlightColor)
set highlight color
|
void |
setMenuItemHeight(int menuItemHeight)
set sub menu's height
|
void |
setMenuItemWidth(int menuItemWidth)
set sub menu's width
|
void |
setMenuList(java.util.ArrayList menuList)
set Menu list
|
void |
setOpen(boolean isOpen)
set if the menubar is open
|
void |
setSelectionColor(java.awt.Color selectionColor)
This method is to set selection Color
|
void |
setTimeout(int timeout)
set MennuBar's Timeout
|
protected void |
setUpRollover(HTMLDiv menuDiv,
java.lang.String menubarId)
This method is to set div's hightlight color
|
getDepth, getId, getLabel, getMenuBar, isSelected, setLabel, setMenuBar, setSelected
addComponent, addComponent, addText, clear, findId, getComponent, getComponentCount, hasComponent, removeComponent, removeComponent
addJavaScript, addJavaScript, addOnLoadScript, appendClassName, checkIsContainer, copyAttributes, doBuildToolTip, fetchStyleProperty, getClassName, getMutableTheme, getParent, getParentPage, getStyleSheet, getTheme, hasTheme, iAddComponent, iAddComponent, iAddedToPage, iAddEvent, iClear, iFindId, iGenerate, iGenerateAttributes, iGenerateAttributesID, iGenerateComponent, iGenerateComponent, iGenerateEvents, iGetComponent, iGetComponentCount, iHasEvent, iRemoveComponent, isCompiled, iSetId, iSetName, iSetStyleId, makeColorID, makeListOfEvents, monitorPage, postCompile, resetParent, setAlignment, setAttribute, setClassName, setHasInitFocus, setParent, setStyleProperty, setTabIndex, touch
public HTMLMenuBar(java.lang.String code)
code
- the code.protected void compile(ClientBrowser browser)
compile
in class HTMLComponent
browser
- - client Browserprotected abstract void addMenus(HTMLPage page, HTMLTable table, java.util.ArrayList menuList)
page
- - parent pagetable
- - the table which menus are added inmenuList
- - the menu listpublic void addMenu(HTMLMenuItem menu)
menu
- - one HTMLMenuprotected void setDivBorder(HTMLDiv div)
div
- - the div that contains menuprotected void setUpRollover(HTMLDiv menuDiv, java.lang.String menubarId)
menuDiv
- - HTMLDiv it is object that rollover is addedmenubarId
- - Menu bar's Idprotected void addRolloverScript()
protected void addMenuBarColorArray(java.lang.String strMenuBarId)
strMenuBarId
- menu bar's idpublic void setTimeout(int timeout)
timeout
- Menu's timeoutpublic void setMenuItemWidth(int menuItemWidth)
menuItemWidth
- sub Menu's widthpublic void setMenuItemHeight(int menuItemHeight)
menuItemHeight
- sub Menu's heightpublic void setMenuList(java.util.ArrayList menuList)
menuList
- menu listpublic void setBgColor(java.awt.Color bgColor)
bgColor
- - the background color .public void setHighlightColor(java.awt.Color highlightColor)
highlightColor
- - the highlight color .public void setBorderWidth(int borderWidth)
borderWidth
- - menu's bordre width .public void setBorderStyle(java.lang.String borderStyle)
borderStyle
- - menu's bordre style .public void setBorderColor(java.awt.Color borderColor)
borderColor
- - menu's bordre color .public void setSelectionColor(java.awt.Color selectionColor)
selectionColor
- - selection Colorpublic void setOpen(boolean isOpen)
isOpen
- - true: open it; false: close it .public int getTimeout()
public int getMenuItemWidth()
public int getMenuItemHeight()
public int getFullHeight()
public java.awt.Color getBgColor()
public java.awt.Color getHighlightColor()
public java.util.ArrayList getMenuList()
public java.lang.String getMenuCode()
public java.awt.Color getSelectionColor()
public boolean isOpen()
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.