psdi.webclient.components

Class ToggleImage

    • Field Detail

      • state

        public java.lang.String state
      • lastState

        public java.lang.String lastState
      • source

        public java.lang.String source
      • states

        public java.util.Hashtable states
      • lastStates

        public java.util.Hashtable lastStates
    • Constructor Detail

      • ToggleImage

        public ToggleImage()
    • Method Detail

      • getState

        public java.lang.Object getState()
      • getLastState

        public java.lang.Object getLastState()
      • updateState

        public java.lang.String updateState(java.lang.String methodName)
        Returns:
        String - current state of image
      • stateChanged

        public boolean stateChanged()
      • getSource

        public java.lang.String getSource()
        This method builds the propertyname for use in retrieving the correct image, based on the current state.
        Returns:
        String - current image
      • getMessage

        public java.lang.String getMessage()
        This method returns the current message based on the method defined in tooltip property
        Returns:
        String - tooltip
      • getLabel

        public java.lang.String getLabel()
        This method returns the current label based on the method defined in tooltip property
        Returns:
        String - tooltip
      • render

        public int render()
                   throws java.lang.NoSuchMethodException,
                          java.lang.IllegalAccessException,
                          java.lang.reflect.InvocationTargetException
        Description copied from class: BoundComponentInstance
        Needed to override this method to cache original values for data, readonly, required and applink
        Overrides:
        render in class BoundComponentInstance
        Throws:
        java.lang.NoSuchMethodException
        java.lang.IllegalAccessException
        java.lang.reflect.InvocationTargetException
        See Also:
        ComponentInstance.render()
      • getClickState

        public int getClickState()
        Description copied from class: ComponentInstance
        Returns whether or not this item is clickable. Uses clickablesate property on the component.
        • NOT_CLICKABLE Does not have an MXEVENT
        • CLICKABLE_OFF Has MXEVENT, but cannot be clicked now
        • CLICKABLE_ON Has MXEVENT and can be clicked now
        Overrides:
        getClickState in class ComponentInstance
        Returns:
        the state
      • canChangeRowFocus

        public boolean canChangeRowFocus()
        Clicking on toggle image component should also change the focus on the table row if not running in asynchronous mode.
        Overrides:
        canChangeRowFocus in class ComponentInstance
        Returns: