LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.web.struts
Class LyStrutsSelectBar

java.lang.Object
  extended by leon.view.graphic.LyGraphicalObject
      extended by leon.view.web.LyWebObject
          extended by leon.view.web.struts.LyStrutsFieldItem
              extended by leon.view.web.struts.LyStrutsPanel
                  extended by leon.view.web.struts.LyStrutsSelectBar
All Implemented Interfaces:
LyGetBoundsInterface, LyGraphicalComponent, LyGraphicalFieldItem, LyGraphicalPanel, LyGraphicalSelectBar, LyViewComponent, LyFreeInterface, LySetLabelInterface, LySetPopupMenuInterface, LyWebComponent

public class LyStrutsSelectBar
extends LyStrutsPanel
implements LyGraphicalSelectBar, LyGetBoundsInterface

This class implements the Select Bar object (as described in the dtd) for struts viewer.

SELECTBAR: Navigation Bar
A navigation bar allows displaying a set of page numbers (or page names) in order to go directly to the selected page. This bar must be associated to an area presenting paginated data (a long list for example).


Field Summary
static java.lang.String __VERSION
           
static int DECO_BORDER_PARAMETER
          Constant used to generate CSS class name for border.
static int DECO_SELECTBAR_PARAMETER
          Constant used to generate CSS class name for select bar.
static int DECO_SELECTITEM_PARAMETER
          Constant used to generate CSS class name for select item.
 
Fields inherited from class leon.view.web.LyWebObject
WEB_COMPONENT_ID, WEB_CONTROLLER_ID, WEB_SESSION_ID
 
Constructor Summary
LyStrutsSelectBar(LySelectBar selectBar)
          Constructor.
 
Method Summary
 void addComponent(LyComponent component, int pos)
          (non-Javadoc).
 java.lang.String buildToolPath(java.lang.String toolPath, LyWebPageWriter pw)
          (non-Javadoc).
 int[] getLocation()
          (non-Javadoc).
 int[] getSize()
          (non-Javadoc).
 void initialize()
          Initialization method.
 void refresh()
          (non-Javadoc).
 void removeComponent(LyComponent component)
          (non-Javadoc).
 void setLabel(java.lang.String label)
          (non-Javadoc).
 void setStartItem(int startItem)
          (non-Javadoc).
 void writeHtml(LyWebPageWriter pw)
          (non-Javadoc).
 
Methods inherited from class leon.view.web.struts.LyStrutsPanel
getPopupMenuView, setPopupMenu
 
Methods inherited from class leon.view.web.struts.LyStrutsFieldItem
canDisabled, getCaption, getController, getFieldItem, getForm, getFormField, getFormName, getHtmlForm, getId, isEditable, isNetscape, isOptional, needCheck
 
Methods inherited from class leon.view.web.LyWebObject
addFileScript, decodeUrl, displayUpPage, encodeUrl, encodeUrlXhtml, expandUrl, free, getDisabledImageUrl, getFontSize, getFontString, getFontString, getFontString, getHexColor, getHexColor, getHtmlEntitiesString, getHtmlString, getImageSize, getImageSize, getImageUrl, getJavascriptString, getLastFrameName, getLyFont, getMessage, getRootUrl, getRootURL, getScrollHeightForSplitter, getUrl, getWebViewManager, replaceUrl, replaceUrl, setUpdating, updateRefreshInfo, writeJson
 
Methods inherited from class leon.view.graphic.LyGraphicalObject
expand, getBounds, getChildrenBounds, getEnv, getEnvironment, getIdCode, getIntResource, getMessage, getResource, getString, getString, getString, getViewComponent, getViewManager, isFreed, isFreeing, isImageAnimated, processDemand, processDemand, testResource, translate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface leon.view.graphic.LyGraphicalComponent
free, getViewComponent
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values

DECO_BORDER_PARAMETER

public static int DECO_BORDER_PARAMETER
Constant used to generate CSS class name for border.


DECO_SELECTBAR_PARAMETER

public static int DECO_SELECTBAR_PARAMETER
Constant used to generate CSS class name for select bar.


DECO_SELECTITEM_PARAMETER

public static int DECO_SELECTITEM_PARAMETER
Constant used to generate CSS class name for select item.

Constructor Detail

LyStrutsSelectBar

public LyStrutsSelectBar(LySelectBar selectBar)
Constructor.

Parameters:
selectBar - the select bar component
Method Detail

buildToolPath

public java.lang.String buildToolPath(java.lang.String toolPath,
                                      LyWebPageWriter pw)
(non-Javadoc).

See Also:
buildToolPath(java.lang.String, leon.view.web.LyWebPageWriter)

initialize

public void initialize()
Initialization method.
Sets the select bar backgroung color.


writeHtml

public void writeHtml(LyWebPageWriter pw)
(non-Javadoc).

Specified by:
writeHtml in interface LyWebComponent
Parameters:
pw - the page writer
See Also:
LyWebComponent.writeHtml(leon.view.web.LyWebPageWriter)

refresh

public void refresh()
(non-Javadoc).

Overrides:
refresh in class LyWebObject
See Also:
LyWebObject.refresh()

getLocation

public int[] getLocation()
(non-Javadoc).

Specified by:
getLocation in interface LyGetBoundsInterface
See Also:
LyGetBoundsInterface.getLocation()

getSize

public int[] getSize()
(non-Javadoc).

Specified by:
getSize in interface LyGetBoundsInterface
See Also:
LyGetBoundsInterface.getSize()

setStartItem

public void setStartItem(int startItem)
(non-Javadoc).

Specified by:
setStartItem in interface LyGraphicalSelectBar
Parameters:
startItem - New value of startItem.
See Also:
LyGraphicalSelectBar.setStartItem(int)

setLabel

public void setLabel(java.lang.String label)
(non-Javadoc).

Specified by:
setLabel in interface LyGraphicalSelectBar
Specified by:
setLabel in interface LySetLabelInterface
Overrides:
setLabel in class LyStrutsFieldItem
Parameters:
label - new label
See Also:
LyStrutsFieldItem.setLabel(java.lang.String)

addComponent

public void addComponent(LyComponent component,
                         int pos)
(non-Javadoc).

Specified by:
addComponent in interface LyGraphicalSelectBar
Parameters:
component - The components to add to components list.
pos - Position where the sub-component is inserted.
See Also:
LyGraphicalSelectBar.addComponent(leon.view.LyComponent, int)

removeComponent

public void removeComponent(LyComponent component)
(non-Javadoc).

Specified by:
removeComponent in interface LyGraphicalSelectBar
Parameters:
component - The components to remove to components list.
See Also:
LyGraphicalSelectBar.removeComponent(leon.view.LyComponent)

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com