public class JCalendarDateDialog extends javax.swing.JDialog implements IMethodsForGraphicalCalendarComponents, java.io.Serializable
javax.swing.JDialog.AccessibleJDialog
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
accessibleContext, rootPane, rootPaneCheckingEnabled
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
JCalendarDateDialog()
Default Constructor
|
JCalendarDateDialog(int width,
int height)
This is the default constructor with 2 parameters for set the size
|
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getDate()
Gets the date of the calendar
|
java.lang.String |
getFormattedDate()
Returns the date selected, formatted
|
int |
getHeight()
Get the height of this panel
|
java.lang.String |
getTitle()
Gets the title of the JDialog with the calendar component.
|
int |
getWidth()
Get the width of this panel
|
void |
resizeToInitialSize()
Sets the initial size of this panel
|
void |
setDate(java.util.Date date)
Sets the date to the calendar
|
void |
setDefaultTitle()
Sets the default title of the JDialog with the calendar component.
|
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)
|
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 <= 1.0, this method doesn't apply the changes)
|
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)
|
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 <= 1.0, this method doesn't apply the changes)
|
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)
|
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 <= 1.0, this method doesn't apply the changes)
|
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)
|
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 <= 1.0, this method doesn't apply the changes)
|
void |
setModal(boolean b) |
void |
setSizeResize(int width,
int height)
Sets the size of this panel
|
void |
setTitle(java.lang.String title)
Sets the title of the JDialog with the calendar component.
|
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
addNotify, getModalityType, hide, isModal, isResizable, isUndecorated, setBackground, setModalityType, setOpacity, setResizable, setShape, setUndecorated, setVisible, show, toBack
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFront
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public JCalendarDateDialog()
public JCalendarDateDialog(int width, int height)
public void resizeToInitialSize()
width
- (the new Width for the panel)height
- (the new Height for the panel)public void setMaximumWidthScreenResolutionPercentage(double max_width_screen_percentage)
max_width_screen_percentage
- A float number > 0, or -1 if there is no limitpublic void setMinimumWidthScreenResolutionPercentage(double min_width_screen_percentage)
min_width_screen_percentage
- A float number > 0.0 neither -1.0 neither <= 1.0, or -1 if there is no limitpublic void setMaximumHeightScreenResolutionPercentage(double max_height_screen_percentage)
max_width_screen_percentage
- A float number > 0.0 neither -1.0 neither <= 1.0, or -1 if there is no limitpublic void setMinimumHeightScreenResolutionPercentage(double min_height_screen_percentage)
min_width_screen_percentage
- A float number > 0.0 neither -1.0 neither <= 1.0, or -1 if there is no limitpublic void setMaximumWidth(int max_width)
max_width
- A natural number > 0, or -1 if there is no limitpublic void setMinimumWidth(int min_width)
min_width
- A natural number > 0, or -1 if there is no limitpublic void setMaximumHeight(int max_height)
max_width
- A natural number > 0, or -1 if there is no limitpublic void setMinimumHeight(int min_height)
min_width
- A natural number > 0, or -1 if there is no limitpublic void setSizeResize(int width, int height)
width
- (the new Width for the panel)height
- (the new Height for the panel)public int getHeight()
getHeight
in class java.awt.Component
public int getWidth()
getWidth
in class java.awt.Component
public java.util.Date getDate()
IMethodsForGraphicalCalendarComponents
getDate
in interface IMethodsForGraphicalCalendarComponents
public void setDate(java.util.Date date)
IMethodsForGraphicalCalendarComponents
setDate
in interface IMethodsForGraphicalCalendarComponents
public java.lang.String getFormattedDate()
IMethodsForGraphicalCalendarComponents
getFormattedDate
in interface IMethodsForGraphicalCalendarComponents
public java.lang.String getTitle()
getTitle
in class java.awt.Dialog
public void setTitle(java.lang.String title)
setTitle
in class java.awt.Dialog
String
- public void setDefaultTitle()
public void setModal(boolean b)
setModal
in class java.awt.Dialog
Dialog.setModal(boolean)