Java Doc for NavigationMenu.java in  » J2EE » Sofia » com » salmonllc » gui » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » Sofia » com.salmonllc.gui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.salmonllc.html.HtmlComponent
      com.salmonllc.html.HtmlContainer
         com.salmonllc.gui.NavigationMenu

NavigationMenu
public class NavigationMenu extends HtmlContainer (Code)
Creates a navigation menu for a web site


Field Summary
 String_NavTableBackgroundColor
    
 int_NavTableBorder_NavTableCellSpacing_NavTableCellPadding_NavTableLayerWidth_NavTableLayerHeight_NavTableLayerTop_NavTableLayerLeft
    
 String_cellAlign
    
 String_cellBackgroundColor
    
 String_cellVertAlign
    
 boolean_disableCellLink
    
 boolean_enableLayer
    
 String_groupname
    
 Vector_groups
    
 HtmlScript_imagesScript
    
 HtmlLayer_layer
    
 int_layerwidth
    
 HtmlStyle_linkfontstyle_linkfonthoverstyle_selectedFontStyle_selectedFontHoverStyle
    
 HtmlStyle_linkstyle_linkhoverstyle_linkcellhoverstyle_cellStyle_cellHoverStyle_selectedCellStyle_selectedStyle_selectedHoverStyle_selectedCellHoverStyle_fontStyle
    
 Hashtable_nav
    
 Vector_popups
    
 int_selectedGroupIndex
    
 int_selectedItemIndex
    
 String_selectedItemMarkerImg_selectedItemMarkerMouseOverImg_itemMarkerImg_itemTitleMarkerImg_itemMarkerMouserOverImg
    
 int_sizeOption
    
 HtmlTable_table
    
 int_width
    
 boolean_wrap
    

Constructor Summary
public  NavigationMenu(HtmlPage p)
     NavigationMenu Constructor.
public  NavigationMenu(String name, HtmlPage p)
     This constructor creates a NavigationMenu using properties from a group with a groupname of default.
public  NavigationMenu(String name, HtmlPage p, String groupname)
     NavigationMenu Constructor.
public  NavigationMenu(String name, HtmlPage p, String groupname, String parentgroup)
     NavigationMenu Constructor.
public  NavigationMenu(String name, HtmlPage p, String groupname, boolean bSubmenu)
     NavigationMenu Constructor.

Method Summary
public  voidadd(HtmlComponent comp)
    
public  NavigationGroupInterfaceaddGroup(String image, int vertPadding)
    
public  intaddMenuItem(int menu, String title, String href, String target, int horizPadding)
    
public  intaddMenuItem(int menu, String title, String href, String target, int horizPadding, boolean createTable)
    
public  intaddMenuItem(int menu, String submenu, String title, String href, String target, int horizPadding)
     Adds a menu item to Navigation Menu
Parameters:
  menu - int Index of the group menu to add to.
Parameters:
  submenu - java.lang.String submenu name of the item added.
public  intaddMenuItem(int menu, String submenu, String title, String href, String target, int horizPadding, boolean createTable)
     Adds a menu item to Navigation Menu
Parameters:
  menu - int Index of the group menu to add to.
Parameters:
  submenu - java.lang.String submenu name of the item added.
public  voidclearSelectedItem()
     This method clears the selected menu item.
public  intcreateMenu(String image, int vertPadding)
     Creates a group menu in the Navigation Menu.
public  intcreateMenu(String image, int vertPadding, boolean createTable)
     Creates a group menu in the Navigation Menu.
public  booleangetDisableCellLink()
     Returns whether the cell of the Navigation Menu can act as a link.
public  NavigationGroupInterface[]getGroups()
     Returns an array Group Objects representing the Groups in the Navigation Menu.
public  VectorgetPopups()
     Returns a vector of com.salmonllc.html.HtmlPopups belonging to this navigation menu.
public  NavigationMenugetSubMenu(int groupIndex, int itemIndex)
     Returns a Navigation Menu representing a submenu.
public  NavigationGroupInterfaceinsertGroupAt(String image, int vertPadding, int iLocation)
    
public  NavigationGroupInterfaceinsertGroupAt(String image, int vertPadding, NavigationGroupInterface ngiInsertBefore)
    
public  intinsertMenuItemAt(int menu, String title, String href, String target, int horizPadding, int iLocation)
    
public  intinsertMenuItemAt(int menu, String title, String href, String target, int horizPadding, boolean createTable, int iLocation)
    
public  intinsertMenuItemAt(int menu, String submenu, String title, String href, String target, int horizPadding, int iLocation)
     Inserts a menu item into Navigation Menu at specified location
Parameters:
  menu - int Index of the group menu to add to.
Parameters:
  submenu - java.lang.String submenu name of the item added.
public  intinsertMenuItemAt(int menu, String submenu, String title, String href, String target, int horizPadding, boolean createTable, int iLocation)
     Inserts a menu item into Navigation Menu at specified location
Parameters:
  menu - int Index of the group menu to add to.
Parameters:
  submenu - java.lang.String submenu name of the item added.
protected  HtmlContainernewEntry(String href, String target, String caption, String unique)
     Constructs an HtmlLink component containing a text caption.
protected  HtmlContainernewEntry(String href, String target, String caption, String unique, int iHorSpacer)
     Constructs an HtmlLink component containing a text caption.
protected  HtmlContainernewEntry(String submenu, String href, String target, String caption, String unique)
     Constructs an HtmlLink component containing a text caption.
protected  HtmlContainernewEntry(String submenu, String href, String target, String caption, String unique, int iHorSpacer)
     Constructs an HtmlLink component containing a text caption.
protected  HtmlImagenewHorizontalSpacer(int pixels)
    
public  HtmlStylenewStyle(String name, String type, String styleprop)
     Creates a HtmlStyle object with the given name,type & property string containing the style information com.salmonllc.html.HtmlStyle
Parameters:
  name - java.lang.String The name to be given to the style so that it can be reference in HTML
Parameters:
  type - java.lang.String The type of style to generate e.g.
protected  HtmlImagenewVerticalSpacer(int pixels)
    
public  voidrefresh()
     Causes the Navigation Menu to be regenerated.
public  voidremovePopups()
     Removes the HtmlPopups from the NavigationMenu.
public  voidsetDisableCellLink(boolean bDisable)
     Specifies whether to disable/enable the cell in a Navigation Menu to be a link or not.
public  voidsetEnableLayer(boolean enable)
     Specifies whether the Navigation Menu is to be in its own layer.
public  voidsetGroup(String groupname)
     Specifies the Group Name in the Properties File for the Navigation Menu to be built from.
public  voidsetHref(int groupIndex, int itemIndex, String href)
     Changes the Href of an item in the Navigation Menu.
public  voidsetSelectedItem()
     This selects the current page shown if it has a reference in the menu.
public  voidsetSelectedItem(int groupIndex, int itemIndex)
     Specify which item in the Navigation Menu is to be highlighted as selected..
public  voidsetSelectedItem(String pageName)
     This selects the item via pagename if it exists in the menu.
public  voidsetSizeOption(int sizeoption)
     Specifies how the Navigation Menu is to be sized, via percatage or pixels.
public  voidsetTarget(int groupIndex, int itemIndex, String target)
     Sets the target window for the link of an item in the Navigation Menu.
public  voidsetTitle(int groupIndex, int itemIndex, String title)
     Sets the title displayed of an item in the Navigation Menu.
public  voidsetVisible(int groupIndex, int itemIndex, boolean visible)
     Sets whether the item is visible or not.
public  voidsetVisible(int groupIndex, boolean visible)
     Sets whether the group is visible or not.
public  voidsetVisible(String pageName, boolean visible)
     This hides/shows the item via pagename if it exists in the menu.
public  voidsetWidth(int width)
     Sets the width of the Navigation Menu.

Field Detail
_NavTableBackgroundColor
String _NavTableBackgroundColor(Code)



_NavTableBorder_NavTableCellSpacing_NavTableCellPadding_NavTableLayerWidth_NavTableLayerHeight_NavTableLayerTop_NavTableLayerLeft
int _NavTableBorder_NavTableCellSpacing_NavTableCellPadding_NavTableLayerWidth_NavTableLayerHeight_NavTableLayerTop_NavTableLayerLeft(Code)



_cellAlign
String _cellAlign(Code)



_cellBackgroundColor
String _cellBackgroundColor(Code)



_cellVertAlign
String _cellVertAlign(Code)



_disableCellLink
boolean _disableCellLink(Code)



_enableLayer
boolean _enableLayer(Code)



_groupname
String _groupname(Code)



_groups
Vector _groups(Code)



_imagesScript
HtmlScript _imagesScript(Code)



_layer
HtmlLayer _layer(Code)



_layerwidth
int _layerwidth(Code)



_linkfontstyle_linkfonthoverstyle_selectedFontStyle_selectedFontHoverStyle
HtmlStyle _linkfontstyle_linkfonthoverstyle_selectedFontStyle_selectedFontHoverStyle(Code)



_linkstyle_linkhoverstyle_linkcellhoverstyle_cellStyle_cellHoverStyle_selectedCellStyle_selectedStyle_selectedHoverStyle_selectedCellHoverStyle_fontStyle
HtmlStyle _linkstyle_linkhoverstyle_linkcellhoverstyle_cellStyle_cellHoverStyle_selectedCellStyle_selectedStyle_selectedHoverStyle_selectedCellHoverStyle_fontStyle(Code)



_nav
Hashtable _nav(Code)



_popups
Vector _popups(Code)



_selectedGroupIndex
int _selectedGroupIndex(Code)



_selectedItemIndex
int _selectedItemIndex(Code)



_selectedItemMarkerImg_selectedItemMarkerMouseOverImg_itemMarkerImg_itemTitleMarkerImg_itemMarkerMouserOverImg
String _selectedItemMarkerImg_selectedItemMarkerMouseOverImg_itemMarkerImg_itemTitleMarkerImg_itemMarkerMouserOverImg(Code)



_sizeOption
int _sizeOption(Code)



_table
HtmlTable _table(Code)



_width
int _width(Code)



_wrap
boolean _wrap(Code)




Constructor Detail
NavigationMenu
public NavigationMenu(HtmlPage p) throws Exception(Code)
NavigationMenu Constructor.
Parameters:
  name - java.lang.String
Parameters:
  p - com.salmonllc.html.HtmlPage
Parameters:
  groupname - java.lang.String Name of group in properties files for generating menu.



NavigationMenu
public NavigationMenu(String name, HtmlPage p) throws Exception(Code)
This constructor creates a NavigationMenu using properties from a group with a groupname of default.
Parameters:
  name - java.lang.String
Parameters:
  p - com.salmonllc.html.HtmlPage



NavigationMenu
public NavigationMenu(String name, HtmlPage p, String groupname) throws Exception(Code)
NavigationMenu Constructor.
Parameters:
  name - java.lang.String
Parameters:
  p - com.salmonllc.html.HtmlPage
Parameters:
  groupname - java.lang.String Name of group in properties files for generating menu.



NavigationMenu
public NavigationMenu(String name, HtmlPage p, String groupname, String parentgroup) throws Exception(Code)
NavigationMenu Constructor.
Parameters:
  name - java.lang.String
Parameters:
  p - com.salmonllc.html.HtmlPage
Parameters:
  groupname - java.lang.String Name of group in properties files for generating menu.



NavigationMenu
public NavigationMenu(String name, HtmlPage p, String groupname, boolean bSubmenu) throws Exception(Code)
NavigationMenu Constructor.
Parameters:
  name - java.lang.String
Parameters:
  p - com.salmonllc.html.HtmlPage
Parameters:
  groupname - java.lang.String Name of group in properties files for generating menu.




Method Detail
add
public void add(HtmlComponent comp)(Code)
Adds a new html component to the container
Parameters:
  comp - com.salmonllc.html.HtmlComponent



addGroup
public NavigationGroupInterface addGroup(String image, int vertPadding)(Code)
Adds a group to the NavigationMenu
Parameters:
  image - java.lang.String Filename of the Image
Parameters:
  vertPadding - int The number of pixels providing vertical padding for the group



addMenuItem
public int addMenuItem(int menu, String title, String href, String target, int horizPadding) throws Exception(Code)
Adds a menu item to Navigation Menu
Parameters:
  menu - int Index of the group menu to add to.
Parameters:
  title - java.lang.String title displayed of the item added
Parameters:
  href - java.lang.String href link of the item added
Parameters:
  target - java.lang.String target window of the href link
Parameters:
  horizPadding - int The number of pixels to pad the item by.



addMenuItem
public int addMenuItem(int menu, String title, String href, String target, int horizPadding, boolean createTable) throws Exception(Code)
Adds a menu item to Navigation Menu
Parameters:
  menu - int Index of the group menu to add to.
Parameters:
  title - java.lang.String title displayed of the item added
Parameters:
  href - java.lang.String href link of the item added
Parameters:
  target - java.lang.String target window of the href link
Parameters:
  horizPadding - int The number of pixels to pad the item by.
Parameters:
  createTable - boolean Indicates whether to regenerate the html for the navigation menu.



addMenuItem
public int addMenuItem(int menu, String submenu, String title, String href, String target, int horizPadding) throws Exception(Code)
Adds a menu item to Navigation Menu
Parameters:
  menu - int Index of the group menu to add to.
Parameters:
  submenu - java.lang.String submenu name of the item added. Indicates item is a submenu.
Parameters:
  title - java.lang.String title displayed of the item added
Parameters:
  href - java.lang.String href link of the item added
Parameters:
  target - java.lang.String target window of the href link
Parameters:
  horizPadding - int The number of pixels to pad the item by.



addMenuItem
public int addMenuItem(int menu, String submenu, String title, String href, String target, int horizPadding, boolean createTable) throws Exception(Code)
Adds a menu item to Navigation Menu
Parameters:
  menu - int Index of the group menu to add to.
Parameters:
  submenu - java.lang.String submenu name of the item added. Indicates item is a submenu.
Parameters:
  title - java.lang.String title displayed of the item added
Parameters:
  href - java.lang.String href link of the item added
Parameters:
  target - java.lang.String target window of the href link
Parameters:
  horizPadding - int The number of pixels to pad the item by.
Parameters:
  createTable - boolean Indicates whether to regenerate the html for the navigation menu.



clearSelectedItem
public void clearSelectedItem()(Code)
This method clears the selected menu item.



createMenu
public int createMenu(String image, int vertPadding) throws Exception(Code)
Creates a group menu in the Navigation Menu.
Parameters:
  image - java.lang.String The filename of the image to represent the group
Parameters:
  vertPadding - int The vertical padding for the group



createMenu
public int createMenu(String image, int vertPadding, boolean createTable) throws Exception(Code)
Creates a group menu in the Navigation Menu.
Parameters:
  image - java.lang.String The filename of the image to represent the group
Parameters:
  vertPadding - int The vertical padding for the group
Parameters:
  createTable - boolean Indicates whether to regenerate the html for the navigation menu.



getDisableCellLink
public boolean getDisableCellLink()(Code)
Returns whether the cell of the Navigation Menu can act as a link. boolean Indicates whether cells in the Navigation Menu act as links.



getGroups
public NavigationGroupInterface[] getGroups()(Code)
Returns an array Group Objects representing the Groups in the Navigation Menu. NavigationGroupInterface[] Array of groups in NavigationMenu.



getPopups
public Vector getPopups()(Code)
Returns a vector of com.salmonllc.html.HtmlPopups belonging to this navigation menu. Creation date: (8/16/01 4:01:16 PM) java.util.Vector Vector of com.salmonllc.html.HtmlPopups



getSubMenu
public NavigationMenu getSubMenu(int groupIndex, int itemIndex)(Code)
Returns a Navigation Menu representing a submenu.
Parameters:
  groupIndex - is the group index of the submenu entry.
Parameters:
  itemIndex - is the item index of the submenu entry.



insertGroupAt
public NavigationGroupInterface insertGroupAt(String image, int vertPadding, int iLocation)(Code)
Inserts a group into the NavigationMenu at specified location
Parameters:
  image - java.lang.String Filename of the Image
Parameters:
  vertPadding - int The number of pixels providing vertical padding for the group
Parameters:
  iLocation - int The index at which to Insert the Group



insertGroupAt
public NavigationGroupInterface insertGroupAt(String image, int vertPadding, NavigationGroupInterface ngiInsertBefore)(Code)
Inserts a group into the NavigationMenu at specified location
Parameters:
  image - java.lang.String Filename of the Image
Parameters:
  vertPadding - int The number of pixels providing vertical padding for the group
Parameters:
  ngiInsertBefore - NavigationGroupInterface The group at which to Insert the Group before.



insertMenuItemAt
public int insertMenuItemAt(int menu, String title, String href, String target, int horizPadding, int iLocation) throws Exception(Code)
Inserts a menu item into Navigation Menu at specified location
Parameters:
  menu - int Index of the group menu to add to.
Parameters:
  title - java.lang.String title displayed of the item added
Parameters:
  href - java.lang.String href link of the item added
Parameters:
  target - java.lang.String target window of the href link
Parameters:
  horizPadding - int The number of pixels to pad the item by.
Parameters:
  iLocation - int The index at which to Insert the Item



insertMenuItemAt
public int insertMenuItemAt(int menu, String title, String href, String target, int horizPadding, boolean createTable, int iLocation) throws Exception(Code)
Inserts a menu item into Navigation Menu at specified location
Parameters:
  menu - int Index of the group menu to add to.
Parameters:
  title - java.lang.String title displayed of the item added
Parameters:
  href - java.lang.String href link of the item added
Parameters:
  target - java.lang.String target window of the href link
Parameters:
  horizPadding - int The number of pixels to pad the item by.
Parameters:
  createTable - boolean Indicates whether to regenerate the html for the navigation menu.
Parameters:
  iLocation - int The index at which to Insert the Item



insertMenuItemAt
public int insertMenuItemAt(int menu, String submenu, String title, String href, String target, int horizPadding, int iLocation) throws Exception(Code)
Inserts a menu item into Navigation Menu at specified location
Parameters:
  menu - int Index of the group menu to add to.
Parameters:
  submenu - java.lang.String submenu name of the item added. Indicates item is a submenu.
Parameters:
  title - java.lang.String title displayed of the item added
Parameters:
  href - java.lang.String href link of the item added
Parameters:
  target - java.lang.String target window of the href link
Parameters:
  horizPadding - int The number of pixels to pad the item by.
Parameters:
  iLocation - int The index at which to Insert the Item



insertMenuItemAt
public int insertMenuItemAt(int menu, String submenu, String title, String href, String target, int horizPadding, boolean createTable, int iLocation) throws Exception(Code)
Inserts a menu item into Navigation Menu at specified location
Parameters:
  menu - int Index of the group menu to add to.
Parameters:
  submenu - java.lang.String submenu name of the item added. Indicates item is a submenu.
Parameters:
  title - java.lang.String title displayed of the item added
Parameters:
  href - java.lang.String href link of the item added
Parameters:
  target - java.lang.String target window of the href link
Parameters:
  horizPadding - int The number of pixels to pad the item by.
Parameters:
  createTable - boolean Indicates whether to regenerate the html for the navigation menu.
Parameters:
  iLocation - int The index at which to Insert the Item



newEntry
protected HtmlContainer newEntry(String href, String target, String caption, String unique) throws Exception(Code)
Constructs an HtmlLink component containing a text caption. HtmlContainer
Parameters:
  href - The URL for the link.
Parameters:
  target - The target associated with the link.
Parameters:
  caption - The text caption for the link.
Parameters:
  unique - A unique string to identify different entries in HTML for naming purposes.



newEntry
protected HtmlContainer newEntry(String href, String target, String caption, String unique, int iHorSpacer) throws Exception(Code)
Constructs an HtmlLink component containing a text caption. HtmlContainer
Parameters:
  href - The URL for the link.
Parameters:
  target - The target associated with the link.
Parameters:
  caption - The text caption for the link.
Parameters:
  unique - A unique string to identify different entries in HTML for naming purposes.
Parameters:
  iHorSpacer - The horizontal tabing of an entry.



newEntry
protected HtmlContainer newEntry(String submenu, String href, String target, String caption, String unique) throws Exception(Code)
Constructs an HtmlLink component containing a text caption. HtmlContainer
Parameters:
  submenu - The Name of another group for SubMenu.
Parameters:
  caption - The text caption for the link.
Parameters:
  unique - A unique string to identify different entries in HTML for naming purposes.



newEntry
protected HtmlContainer newEntry(String submenu, String href, String target, String caption, String unique, int iHorSpacer) throws Exception(Code)
Constructs an HtmlLink component containing a text caption. HtmlContainer
Parameters:
  submenu - The Name of another group for SubMenu.
Parameters:
  caption - The text caption for the link.
Parameters:
  unique - A unique string to identify different entries in HTML for naming purposes.



newHorizontalSpacer
protected HtmlImage newHorizontalSpacer(int pixels)(Code)



newStyle
public HtmlStyle newStyle(String name, String type, String styleprop)(Code)
Creates a HtmlStyle object with the given name,type & property string containing the style information com.salmonllc.html.HtmlStyle
Parameters:
  name - java.lang.String The name to be given to the style so that it can be reference in HTML
Parameters:
  type - java.lang.String The type of style to generate e.g. A an anchor style, TD a table cell style etc.
Parameters:
  styleprop - java.lang.String References a property in the properties file giving the style information for the HtmlStyle



newVerticalSpacer
protected HtmlImage newVerticalSpacer(int pixels)(Code)



refresh
public void refresh() throws Exception(Code)
Causes the Navigation Menu to be regenerated.



removePopups
public void removePopups()(Code)
Removes the HtmlPopups from the NavigationMenu. Creation date: (8/17/01 6:08:43 PM)



setDisableCellLink
public void setDisableCellLink(boolean bDisable)(Code)
Specifies whether to disable/enable the cell in a Navigation Menu to be a link or not.
Parameters:
  bDisable - boolean Indicates to whether to disable/enable the link ability of cells within this Navigation Menu.



setEnableLayer
public void setEnableLayer(boolean enable) throws Exception(Code)
Specifies whether the Navigation Menu is to be in its own layer.
Parameters:
  enable - boolean Indicate whether the Navigation Menu is to be in its own layer



setGroup
public void setGroup(String groupname) throws Exception(Code)
Specifies the Group Name in the Properties File for the Navigation Menu to be built from.
Parameters:
  groupname - the name of the group in the properties file describing the menu.



setHref
public void setHref(int groupIndex, int itemIndex, String href)(Code)
Changes the Href of an item in the Navigation Menu.
Parameters:
  groupIndex - is the group index of the entry to change the HRef of.
Parameters:
  itemIndex - is the item index of the entry to change the HRef of.
Parameters:
  href - is the new URL for the HREF of the link.



setSelectedItem
public void setSelectedItem()(Code)
This selects the current page shown if it has a reference in the menu.



setSelectedItem
public void setSelectedItem(int groupIndex, int itemIndex)(Code)
Specify which item in the Navigation Menu is to be highlighted as selected..
Parameters:
  groupIndex - int group index of item to select in menu.
Parameters:
  itemIndex - int item index of item to select in menu.



setSelectedItem
public void setSelectedItem(String pageName)(Code)
This selects the item via pagename if it exists in the menu.



setSizeOption
public void setSizeOption(int sizeoption)(Code)
Specifies how the Navigation Menu is to be sized, via percatage or pixels.
Parameters:
  sizeoption - int A constant representing the type of size option.



setTarget
public void setTarget(int groupIndex, int itemIndex, String target)(Code)
Sets the target window for the link of an item in the Navigation Menu.
Parameters:
  groupIndex - is the group index of the entry to change the target of.
Parameters:
  itemIndex - is the item index of the entry to change the target of.
Parameters:
  target - is the new target associated with the link.



setTitle
public void setTitle(int groupIndex, int itemIndex, String title)(Code)
Sets the title displayed of an item in the Navigation Menu.
Parameters:
  groupIndex - is the group index of the entry to change the caption of.
Parameters:
  itemIndex - is the item index of the entry to change the caption of.
Parameters:
  title - is the new caption for the item.



setVisible
public void setVisible(int groupIndex, int itemIndex, boolean visible)(Code)
Sets whether the item is visible or not.
Parameters:
  groupIndex - is the group index of the entry to hide/show.
Parameters:
  itemIndex - is the item index of the entry to hide/show.
Parameters:
  visible - is to indicate whether the item should be shown or not.



setVisible
public void setVisible(int groupIndex, boolean visible)(Code)
Sets whether the group is visible or not.
Parameters:
  groupIndex - is the group index of the entry to hide/show.
Parameters:
  visible - is to indicate whether the item should be shown or not.



setVisible
public void setVisible(String pageName, boolean visible)(Code)
This hides/shows the item via pagename if it exists in the menu.



setWidth
public void setWidth(int width)(Code)
Sets the width of the Navigation Menu.
Parameters:
  width - int The Width of the Navigation Menu



Fields inherited from com.salmonllc.html.HtmlContainer
protected boolean _center(Code)(Java Doc)
protected Vector _componentsVec(Code)(Java Doc)
protected boolean _enabled(Code)(Java Doc)
protected HtmlComponent _submit(Code)(Java Doc)

Methods inherited from com.salmonllc.html.HtmlContainer
public void add(HtmlComponent comp)(Code)(Java Doc)
public void clearSubmit()(Code)(Java Doc)
public boolean executeEvent(int eventType) throws Exception(Code)(Java Doc)
public void generateHTML(PrintWriter p, int rowNo) throws Exception(Code)(Java Doc)
public void generateHTML(PrintWriter p, int rowStart, int rowEnd) throws Exception(Code)(Java Doc)
public void generateInitialHTML(PrintWriter p) throws Exception(Code)(Java Doc)
public boolean getCenter()(Code)(Java Doc)
public HtmlComponent getComponent(String name)(Code)(Java Doc)
public Enumeration getComponents()(Code)(Java Doc)
public boolean getEnabled()(Code)(Java Doc)
public HtmlComponent getSubmitComponent()(Code)(Java Doc)
public void insertComponentAt(HtmlComponent comp, int index)(Code)(Java Doc)
public boolean processParms(Hashtable parms, int rowNo) throws Exception(Code)(Java Doc)
public void remove(HtmlComponent comp)(Code)(Java Doc)
public void removeAll()(Code)(Java Doc)
public boolean replaceComponent(HtmlComponent comp, Object compToReplace)(Code)(Java Doc)
public void reset()(Code)(Java Doc)
public void setCenter(boolean center)(Code)(Java Doc)
public void setEnabled(boolean enabled)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Fields inherited from com.salmonllc.html.HtmlComponent
final public static int DISABLED_ATTRIBUTE_USE_NEVER(Code)(Java Doc)
final public static int DISABLED_ATTRIBUTE_USE_ON_SUPPORTED_BROWSERS(Code)(Java Doc)
final public static int DISABLED_ATTRIBUTE_USE_SYSTEM_DEFAULT(Code)(Java Doc)
final public static int EVENT_NONE(Code)(Java Doc)
final public static int EVENT_OTHER(Code)(Java Doc)
final public static int EVENT_SUBMIT(Code)(Java Doc)
protected String _class(Code)(Java Doc)
protected boolean _generateNewline(Code)(Java Doc)
protected HtmlComponent _parent(Code)(Java Doc)
protected boolean _visible(Code)(Java Doc)
final protected static boolean debug(Code)(Java Doc)

Methods inherited from com.salmonllc.html.HtmlComponent
public void doBinding() throws Exception(Code)(Java Doc)
public String encodeURL(String url)(Code)(Java Doc)
public StringBuffer encodeURL(StringBuffer url)(Code)(Java Doc)
public boolean executeEvent(int eventType) throws Exception(Code)(Java Doc)
public static String fixSpecialHTMLCharacters(String input)(Code)(Java Doc)
abstract public void generateHTML(PrintWriter p, int rowNo) throws Exception(Code)(Java Doc)
public void generateHTML(PrintWriter p, int rowStart, int rowEnd) throws Exception(Code)(Java Doc)
protected String generateImageURL()(Code)(Java Doc)
public void generateInitialHTML(PrintWriter p) throws Exception(Code)(Java Doc)
public String getClassName()(Code)(Java Doc)
public String getDataSource()(Code)(Java Doc)
public int getFormIndex()(Code)(Java Doc)
public String getFormString()(Code)(Java Doc)
public String getFullName()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public HtmlPage getPage()(Code)(Java Doc)
public HtmlComponent getParent()(Code)(Java Doc)
protected String getPortletNameSpace()(Code)(Java Doc)
protected String getSiteMapEntryName(String url)(Code)(Java Doc)
public String getTheme()(Code)(Java Doc)
public int getUseDisabledAttribute()(Code)(Java Doc)
public boolean getVisible()(Code)(Java Doc)
public boolean getVisible(boolean checkParents)(Code)(Java Doc)
public boolean processParms(Hashtable parms, int rowNo) throws Exception(Code)(Java Doc)
public void reset()(Code)(Java Doc)
public void setClassName(String sClass)(Code)(Java Doc)
public void setDataSource(String dataSource)(Code)(Java Doc)
public void setFormIndex(int formIndex)(Code)(Java Doc)
public void setGenerateNewline(boolean enable)(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
public void setPage(HtmlPage p)(Code)(Java Doc)
public void setParent(HtmlComponent parent)(Code)(Java Doc)
public void setTheme(String theme)(Code)(Java Doc)
public void setUseDisabledAttribute(int i)(Code)(Java Doc)
public void setVisible(boolean visible)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public String translateSiteMapURL(String url)(Code)(Java Doc)
protected boolean useDisabledAttribute()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.