Class IMAGESHAKERBinding

java.lang.Object
org.eclnt.jsfserver.elements.impl.IMAGESHAKERBinding
All Implemented Interfaces:
Serializable, IDynamicContentBindingObject

public class IMAGESHAKERBinding extends Object implements Serializable, IDynamicContentBindingObject
See Also:
  • Constructor Details

    • IMAGESHAKERBinding

      public IMAGESHAKERBinding()
  • Method Details

    • setSelectionBorderColor

      public void setSelectionBorderColor(String value)
    • getSelectionBorderColor

      public String getSelectionBorderColor()
    • getOffsetX

      public int getOffsetX()
    • setOffsetX

      public void setOffsetX(int offsetX)
      This is the x-offset that is used when drawing the items.
    • getOffsetY

      public int getOffsetY()
    • setOffsetY

      public void setOffsetY(int offsetY)
      This is the y-offset that is used when drawing the items.
    • getImageInfoMap

      public IMAGESHAKERBinding.ImageInfoMap getImageInfoMap()
    • getTrigger

      public Trigger getTrigger()
    • getWithShearing

      public boolean getWithShearing()
    • setWithShearing

      public void setWithShearing(boolean withShearing)
      If set to true, then non-selected components will be automatically sheared. Result: you can opticall arrange more items within the component, and things look nice...
    • getImages

      public List<String> getImages()
      Internally used. Do not directly manipulate the list of images!
    • getTooltips

      public List<String> getTooltips()
      Internally used. Do not directly manipulate the list of tooltips!
    • setImagewidth

      public void setImagewidth(int imagewidth)
    • setImageheight

      public void setImageheight(int imageheight)
    • clearImages

      public void clearImages()
      Clears all image items so that the component is "empty".
    • addImage

      public void addImage(String image)
      Adds an image - the image being represented by a normal image link (e.g. /images/xyz.png) that points to an image within the current web application.
    • addImage

      public void addImage(String image, String tooltip)
      Extended method to add an image and a tooltip that is shown on top of the image.
    • getChangeIndex

      public int getChangeIndex()
      Internal use only.
    • onNext

      public void onNext(javax.faces.event.ActionEvent event)
      Internal use only.
    • onPrevious

      public void onPrevious(javax.faces.event.ActionEvent event)
      Internal use only.
    • getSelectedIndex

      public int getSelectedIndex()
      Index of currently selected image item.
    • setSelectedIndex

      public void setSelectedIndex(int index, boolean withApplicationCallback)
      Parameters:
      index - Image to be selected.
      withApplicationCallback - Flag if to call the "reactOnImageSelection" method or not.
    • reactOnImageSelect

      protected void reactOnImageSelect(int selectedIndex)
      This is the method to be overridden for reacting on the selection of an image.
    • getBounds

      protected Rectangle getBounds(int index)
    • getZIndex

      protected int getZIndex(int index)
    • selectIndex

      protected void selectIndex(int index)
    • selectIndex

      protected void selectIndex(int index, boolean withApplicationCallBack)
    • getWidth

      protected int getWidth(int index)
    • getHeight

      protected int getHeight(int index)
    • updateChangeIndex

      protected void updateChangeIndex()
    • buildBgpaintForSelectedTab

      protected String buildBgpaintForSelectedTab(String image)
    • buildBgpaintForUnselectedTab

      protected String buildBgpaintForUnselectedTab(String image)
    • buildBgpaintForUnselectedTabWithShearingLeftSide

      protected String buildBgpaintForUnselectedTabWithShearingLeftSide(String image)
    • buildBgpaintForUnselectedTabWithShearingRightSide

      protected String buildBgpaintForUnselectedTabWithShearingRightSide(String image)