Class JCalendarDateDialog

java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
org.gvsig.gui.beans.swing.textBoxWithCalendar.JCalendarDateDialog
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants, IMethodsForGraphicalCalendarComponents

public class JCalendarDateDialog extends JDialog implements IMethodsForGraphicalCalendarComponents, Serializable
Creates a Dialog that allows users to select the date they want This class is a version of JCalendarDatePanel
Author:
Pablo Piqueras Bartolomé (p_queras@hotmail.com)
See Also:
  • Constructor Details

    • JCalendarDateDialog

      public JCalendarDateDialog()
      Default Constructor
    • JCalendarDateDialog

      public JCalendarDateDialog(int width, int height)
      This is the default constructor with 2 parameters for set the size
  • Method Details

    • resizeToInitialSize

      public void resizeToInitialSize()
      Sets the initial size of this panel
      Parameters:
      width - (the new Width for the panel)
      height - (the new Height for the panel)
    • setMaximumWidthScreenResolutionPercentage

      public void setMaximumWidthScreenResolutionPercentage(double max_width_screen_percentage)
      Sets the maximum width for this component, according a percentage of the width resolution of the screen (If the parameter isn't > 0.0 neither -1.0 neither invalid input: '<'= 1.0, this method doesn't apply the changes)
      Parameters:
      max_width_screen_percentage - A float number > 0, or -1 if there is no limit
    • setMinimumWidthScreenResolutionPercentage

      public void setMinimumWidthScreenResolutionPercentage(double min_width_screen_percentage)
      Sets the minimum width for this component, according a percentage of the width resolution of the screen (If the parameter isn't > 0.0 neither -1.0 neither invalid input: '<'= 1.0, this method doesn't apply the changes)
      Parameters:
      min_width_screen_percentage - A float number > 0.0 neither -1.0 neither invalid input: '<'= 1.0, or -1 if there is no limit
    • setMaximumHeightScreenResolutionPercentage

      public void setMaximumHeightScreenResolutionPercentage(double max_height_screen_percentage)
      Sets the maximum height for this component, according a percentage of the height resolution of the screen (If the parameter isn't > 0.0 neither -1.0 neither invalid input: '<'= 1.0, this method doesn't apply the changes)
      Parameters:
      max_width_screen_percentage - A float number > 0.0 neither -1.0 neither invalid input: '<'= 1.0, or -1 if there is no limit
    • setMinimumHeightScreenResolutionPercentage

      public void setMinimumHeightScreenResolutionPercentage(double min_height_screen_percentage)
      Sets the minimum height for this component, according a percentage of the height resolution of the screen (If the parameter isn't > 0.0 neither -1.0 neither invalid input: '<'= 1.0, this method doesn't apply the changes)
      Parameters:
      min_width_screen_percentage - A float number > 0.0 neither -1.0 neither invalid input: '<'= 1.0, or -1 if there is no limit
    • setMaximumWidth

      public void setMaximumWidth(int max_width)
      Sets the maximum width for this component (If the parameter isn't > 0 neither -1, this method doesn't apply the changes)
      Parameters:
      max_width - A natural number > 0, or -1 if there is no limit
    • setMinimumWidth

      public void setMinimumWidth(int min_width)
      Sets the minimum width for this component (If the parameter isn't > 0 neither -1, this method doesn't apply the changes)
      Parameters:
      min_width - A natural number > 0, or -1 if there is no limit
    • setMaximumHeight

      public void setMaximumHeight(int max_height)
      Sets the maximum height for this component (If the parameter isn't > 0 neither -1, this method doesn't apply the changes)
      Parameters:
      max_width - A natural number > 0, or -1 if there is no limit
    • setMinimumHeight

      public void setMinimumHeight(int min_height)
      Sets the minimum height for this component (If the parameter isn't > 0 neither -1, this method doesn't apply the changes)
      Parameters:
      min_width - A natural number > 0, or -1 if there is no limit
    • setSizeResize

      public void setSizeResize(int width, int height)
      Sets the size of this panel
      Parameters:
      width - (the new Width for the panel)
      height - (the new Height for the panel)
    • getHeight

      public int getHeight()
      Get the height of this panel
      Overrides:
      getHeight in class Component
    • getWidth

      public int getWidth()
      Get the width of this panel
      Overrides:
      getWidth in class Component
    • getDate

      public Date getDate()
      Description copied from interface: IMethodsForGraphicalCalendarComponents
      Gets the date of the calendar
      Specified by:
      getDate in interface IMethodsForGraphicalCalendarComponents
      Returns:
      Date
    • setDate

      public void setDate(Date date)
      Description copied from interface: IMethodsForGraphicalCalendarComponents
      Sets the date to the calendar
      Specified by:
      setDate in interface IMethodsForGraphicalCalendarComponents
      Parameters:
      date -
    • getFormattedDate

      public String getFormattedDate()
      Description copied from interface: IMethodsForGraphicalCalendarComponents
      Returns the date selected, formatted
      Specified by:
      getFormattedDate in interface IMethodsForGraphicalCalendarComponents
      Returns:
      String The formatted date
    • getTitle

      public String getTitle()
      Gets the title of the JDialog with the calendar component. The title is displayed in the JDialog's border.
      Overrides:
      getTitle in class Dialog
      Returns:
      Title
    • setTitle

      public void setTitle(String title)
      Sets the title of the JDialog with the calendar component.
      Overrides:
      setTitle in class Dialog
      Parameters:
      String -
    • setDefaultTitle

      public void setDefaultTitle()
      Sets the default title of the JDialog with the calendar component.
    • setModal

      public void setModal(boolean b)
      Overrides:
      setModal in class Dialog
      See Also: