psdi.webclient.controls

Class Pushbutton

  • All Implemented Interfaces:
    java.lang.Cloneable


    public class Pushbutton
    extends ControlInstance
    Overwrites initialize event to set defaultbutton propery to the id of this button's pushbutton component in the nearest ancestor that has that proeprty defined in its descriptor. This cannot be doen in the pushbutton component instance, because the pushbutton component can be part of different controls, while the defaultbutton property relates only to the pushbutton control
    • Field Detail

      • DEFAULTBUTTON_PROPERTY

        public static final java.lang.String DEFAULTBUTTON_PROPERTY
        See Also:
        Constant Field Values
      • LASTBUTTON_PROPERTY

        public static final java.lang.String LASTBUTTON_PROPERTY
        See Also:
        Constant Field Values
    • Constructor Detail

      • Pushbutton

        public Pushbutton()
    • Method Detail

      • initialize

        public void initialize()
        Description copied from class: BaseInstance
        should be extended to do any setup required by the instance. for example, the DatasrcInstance will call initialize to create data sources found in the bind list.
        Overrides:
        initialize in class ControlInstance
      • initAddRowForRecordLock

        public void initAddRowForRecordLock()
        This method greys out this push button if it sends an addrow or dialogok event only if the current app is enabled for Edit mode (Record Locking) and the page type is a dialog and the current record has save access.
      • render

        public int render()
                   throws java.lang.NoSuchMethodException,
                          java.lang.IllegalAccessException,
                          java.lang.reflect.InvocationTargetException
        Description copied from class: ControlInstance
        Render this control's components
        Overrides:
        render in class ControlInstance
        Throws:
        java.lang.NoSuchMethodException
        java.lang.IllegalAccessException
        java.lang.reflect.InvocationTargetException
      • stopRender

        public boolean stopRender()
        Description copied from class: ControlInstance
        This method checks to see if the parent control is visible or not. If not it returns false preventing the control from rendering itself. Always returns true if the control in in the table filter row.
        Overrides:
        stopRender in class ControlInstance
        Returns:
      • canRemove

        public boolean canRemove()
        Description copied from class: ControlInstance
        Can the control be removed Extend this method if a control has rules for whether or not it can be removed
        Overrides:
        canRemove in class ControlInstance
        Returns:
        - boolean