Class ConfirmPanel

    • Constructor Detail

      • ConfirmPanel

        public ConfirmPanel()
        Create Confirmation Panel with OK Button
      • ConfirmPanel

        public ConfirmPanel​(boolean withCancelButton)
        Create Confirmation Panel with OK and Cancel Button
        Parameters:
        withCancelButton - with cancel
      • ConfirmPanel

        public ConfirmPanel​(boolean withCancelButton,
                            boolean withRefreshButton,
                            boolean withResetButton,
                            boolean withCustomizeButton,
                            boolean withHistoryButton,
                            boolean withZoomButton,
                            boolean withText)
        Create Confirmation Panel with different buttons
        Parameters:
        withCancelButton - with cancel
        withRefreshButton - with refresh
        withResetButton - with reset
        withCustomizeButton - with customize
        withHistoryButton - with history
        withZoomButton - with zoom
        withText - with text
    • Method Detail

      • createOKButton

        public static final CButton createOKButton​(String text)
        Create OK Button with label text and F4 Shortcut
        Parameters:
        text - text
        Returns:
        OK Button
      • createOKButton

        public static final CButton createOKButton​(boolean withText)
        Create OK Button with Standard text
        Parameters:
        withText - with text
        Returns:
        OK Button
      • createCancelButton

        public static final CButton createCancelButton​(String text)
        Create Cancel Button wlth label text and register ESC as KeyStroke
        Parameters:
        text - text
        Returns:
        Cancel Button
      • createCancelButton

        public static final CButton createCancelButton​(boolean withText)
        Create Cancel Button wlth Standard text
        Parameters:
        withText - with text
        Returns:
        Button
      • createRefreshButton

        public static final CButton createRefreshButton​(String text)
        Create Refresh Button wlth label text and F5
        Parameters:
        text - text
        Returns:
        button
      • createRefreshButton

        public static final CButton createRefreshButton​(boolean withText)
        Create Refresh Button wlth Standard text
        Parameters:
        withText - with text
        Returns:
        Button
      • createResetButton

        public static final CButton createResetButton​(String text)
        Create Reset Button wlth label text
        Parameters:
        text - text
        Returns:
        button
      • createResetButton

        public static final CButton createResetButton​(boolean withText)
        Create Reset Button wlth Standard text
        Parameters:
        withText - with text
        Returns:
        Button
      • createCustomizeButton

        public static final CButton createCustomizeButton​(String text)
        Create Customize Button wlth label text
        Parameters:
        text - text
        Returns:
        button
      • createCustomizeButton

        public static final CButton createCustomizeButton​(boolean withText)
        Create Customize Button wlth Standard text
        Parameters:
        withText - with text
        Returns:
        Button
      • createHistoryButton

        public static final CButton createHistoryButton​(String text)
        Create History Button wlth label text
        Parameters:
        text - text
        Returns:
        button
      • createHistoryButton

        public static final CButton createHistoryButton​(boolean withText)
        Create History Button wlth Standard text
        Parameters:
        withText - with text
        Returns:
        Button
      • createZoomButton

        public static final CButton createZoomButton​(String text)
        Create Zoom Button wlth label text
        Parameters:
        text - text
        Returns:
        button
      • createZoomButton

        public static final CButton createZoomButton​(boolean withText)
        Create Zoom Button wlth Standard text
        Parameters:
        withText - with text
        Returns:
        Button
      • createProcessButton

        public static final CButton createProcessButton​(String text)
        Create Process Button wlth label text Shift-F4
        Parameters:
        text - text
        Returns:
        button
      • createProcessButton

        public static final CButton createProcessButton​(boolean withText)
        Create Process Button wlth Standard text
        Parameters:
        withText - with text
        Returns:
        Button
      • createPrintButton

        public static final CButton createPrintButton​(String text)
        Create Print Button wlth label text
        Parameters:
        text - text
        Returns:
        button
      • createPrintButton

        public static final CButton createPrintButton​(boolean withText)
        Create Print Button wlth Standard text
        Parameters:
        withText - with text
        Returns:
        Button
      • createHelpButton

        public static final CButton createHelpButton​(String text)
        Create Help Button wlth label text
        Parameters:
        text - text
        Returns:
        Button
      • createHelpButton

        public static final CButton createHelpButton​(boolean withText)
        Create Help Button wlth Standard text
        Parameters:
        withText - with text
        Returns:
        Button
      • createExportButton

        public static final CButton createExportButton​(String text)
        Create Export Button wlth label text
        Parameters:
        text - text
        Returns:
        Button
      • createExportButton

        public static final CButton createExportButton​(boolean withText)
        Create Export Button wlth Standard text
        Parameters:
        withText - with text
        Returns:
        Button
      • createDeleteButton

        public static final CButton createDeleteButton​(String text)
        Create Delete Button with label text - F3
        Parameters:
        text - text
        Returns:
        Delete Button
      • createDeleteButton

        public static final CButton createDeleteButton​(boolean withText)
        Create Delete Button with Standard text
        Parameters:
        withText - with text
        Returns:
        Delete Button
      • createPAttributeButton

        public static final CButton createPAttributeButton​(boolean withText)
        Create Product Attribute Button with Standard text
        Parameters:
        withText - with text
        Returns:
        Product Attribute Button
      • createPAttributeButton

        public static final CButton createPAttributeButton​(String text)
        Create Product Attribute Button with label text
        Parameters:
        text - text
        Returns:
        Product Attribute Button
      • createNewButton

        public static final CButton createNewButton​(boolean withText)
        Create New Button with Standard text
        Parameters:
        withText - with text
        Returns:
        New Button
      • createNewButton

        public static final CButton createNewButton​(String text)
        Create New Button with label text - F2
        Parameters:
        text - text
        Returns:
        Product Attribute Button
      • addComponent

        public void addComponent​(Component button)
        Add Button to left side of confirmPanel
        Parameters:
        button - button
      • addButton

        public CButton addButton​(String action,
                                 String toolTipText,
                                 Icon icon)
        Add Button to left side of confirmPanel
        Parameters:
        action - action command
        toolTipText - tool tip text
        icon - icon
        Returns:
        JButton
      • addButton

        public JButton addButton​(JButton button)
        Add Button to left side of confirmPanel
        Parameters:
        button - button
        Returns:
        JButton
      • getOKButton

        public CButton getOKButton()
        Get OK Button
        Returns:
        OK Button
      • getCancelButton

        public CButton getCancelButton()
        Get Cancel Button
        Returns:
        Cancel Button
      • setOKVisible

        public void setOKVisible​(boolean value)
        Show OK button
        Parameters:
        value - true for visible
      • isOKVisible

        public boolean isOKVisible()
        Is OK Visible
        Returns:
        true of OK visisble
      • setCancelVisible

        public void setCancelVisible​(boolean value)
        Show Cancel button
        Parameters:
        value - trie for visible
      • isCancelVisible

        public boolean isCancelVisible()
        Is Cancel Visible
        Returns:
        true if Canvel is visible
      • getResetButton

        public CButton getResetButton()
        Get Reset Button
        Returns:
        Button
      • getCustomizeButton

        public CButton getCustomizeButton()
        Get Customize Button
        Returns:
        Button
      • getHistoryButton

        public CButton getHistoryButton()
        Get History Button
        Returns:
        Button
      • getZoomButton

        public CButton getZoomButton()
        Get Zoom Button
        Returns:
        Button
      • getRefreshButton

        public CButton getRefreshButton()
        Get Refresh Button
        Returns:
        Button
      • addActionListener

        public void addActionListener​(ActionListener al)
        Add Action Listener if (e.getActionCommand().equals(ConfirmPanel.A_OK))
        Parameters:
        al - listener
      • setEnabled

        public void setEnabled​(boolean enabled)
        Enable all components
        Overrides:
        setEnabled in class JComponent
        Parameters:
        enabled - trie if enabled