public abstract class AbstractSettings extends java.lang.Object implements ISettings
Constructor and Description |
---|
AbstractSettings() |
Modifier and Type | Method and Description |
---|---|
char[] |
getAcceptedDateSeparatorChars()
Returns a list of chars that can be used to separate dates.
|
java.util.List |
getAdditionalDateFormats()
Returns a list of date formats that can be parsed into a Date.
|
int |
getArrowLeftSpacing()
Returns the left spacing before the arrow.
|
int |
getArrowTopSpacing()
Returns the top margin size of the arrows.
|
int |
getBoxSpacer()
Returns the width between each calendar date.
|
int |
getButtonHeight()
Returns the height of the "Today" and "None" buttons.
|
int |
getButtonsHorizontalSpace()
Returns the horizontal spacing between the "Today" and the "None" button.
|
int |
getButtonVerticalSpace()
Returns the spacing between the bottom of the calendar dates and where the "Today" and "None" buttons are.
|
int |
getButtonWidth()
Returns the width of the "Today" and "None" buttons.
|
int |
getButtonWidthCarbon()
Returns the width of the "Today" and "None" buttons for Carbon.
|
int |
getCalendarHeight()
Returns the height of the calendar.
|
int |
getCalendarHeightMacintosh()
CALLED ON MACINTOSH ONLY!
Returns the height of the calendar.
|
int |
getCalendarWidth()
Returns the width of the calendar.
|
int |
getCalendarWidthMacintosh()
CALLED ON MACINTOSH ONLY!
Returns the width of the calendar.
|
char |
getCarbonArrowDownChar()
On OSX/Carbon the arrow up/down don't work due to an eclipse bug so they need alternative keys.
|
char |
getCarbonArrowUpChar()
On OSX/Carbon the arrow up/down don't work due to an eclipse bug so they need alternative keys.
|
int |
getCarbonButtonHeight()
Returns the height of the "Today" and "None" buttons for Carbon.
|
int |
getCarbonButtonsHorizontalSpace()
Returns the horizontal spacing between the "Today" and the "None" button.
|
int |
getCarbonButtonVerticalSpace()
Returns the spacing between the bottom of the calendar dates and where the "Today" and "None" buttons are.
|
int |
getCarbonButtonWidth()
Returns the arrow width of the combo button itself for Carbon.
|
org.eclipse.swt.graphics.Font |
getCarbonDrawFont()
Returns the font to draw on Carbon.
|
java.lang.String |
getDateFormat()
Returns the date format to be used in the text display area.
|
int |
getDatesLeftMargin()
Returns the left margin size where the dates are shown.
|
int |
getDatesRightMargin()
Returns the right margin size where the dates are shown.
|
int |
getGTKButtonWidth()
Returns the arrow width of the combo button itself for GTK.
|
int |
getHeaderHeight()
Returns the height of the header.
|
int |
getHeaderLeftMargin()
Returns the left margin size of the header.
|
int |
getHeaderRightMargin()
Returns the right margin size of the header.
|
int |
getHeaderTopMargin()
Returns the top margin size of the header.
|
java.util.Locale |
getLocale()
Returns the Locale that the calendar should use when calculating dates etc.
|
java.lang.String |
getNoDateSetText()
Returns the text shown in the text area of the combo when there is no date selected.
|
java.lang.String |
getNoneText()
Returns the text written on the "None" button
|
int |
getOneDateBoxSize()
Returns the size (width) of the box that one date is contained in.
|
java.lang.String |
getTodayText()
Returns the text written on the "Today" button
|
int |
getWindowsButtonWidth()
Returns the arrow width of the combo button itself for Windows.
|
org.eclipse.swt.graphics.Font |
getWindowsMonthPopupDrawFont()
Returns the font used to draw the month selector text on Windows.
|
boolean |
isWindows7() |
boolean |
keyboardNavigatesCalendar()
If it returns true, keyboard down key etc will open the calendar and navigate the calendar through the keyboard.
|
boolean |
showCalendarInRightCorner()
True if the calendar should be drawn with the right hand side of the calendar aligned with the drop down button.
|
boolean |
showMonthPickerOnMonthNameMousePress()
Whether to show the month selector pop-up when the mouse is pressed and held on the month name in the calendar window.
|
public boolean isWindows7()
public int getArrowLeftSpacing()
ISettings
getArrowLeftSpacing
in interface ISettings
public int getArrowTopSpacing()
ISettings
getArrowTopSpacing
in interface ISettings
public int getOneDateBoxSize()
ISettings
getOneDateBoxSize
in interface ISettings
public int getBoxSpacer()
ISettings
getBoxSpacer
in interface ISettings
public int getCalendarHeight()
ISettings
getCalendarHeight
in interface ISettings
public int getCalendarWidth()
ISettings
getCalendarWidth
in interface ISettings
public int getCalendarWidthMacintosh()
ISettings
getCalendarWidthMacintosh
in interface ISettings
public int getCalendarHeightMacintosh()
ISettings
getCalendarHeightMacintosh
in interface ISettings
public int getDatesLeftMargin()
ISettings
getDatesLeftMargin
in interface ISettings
public int getDatesRightMargin()
ISettings
getDatesRightMargin
in interface ISettings
public int getHeaderHeight()
ISettings
getHeaderHeight
in interface ISettings
public int getHeaderLeftMargin()
ISettings
getHeaderLeftMargin
in interface ISettings
public int getHeaderRightMargin()
ISettings
getHeaderRightMargin
in interface ISettings
public int getHeaderTopMargin()
ISettings
getHeaderTopMargin
in interface ISettings
public boolean showCalendarInRightCorner()
ISettings
showCalendarInRightCorner
in interface ISettings
public java.lang.String getDateFormat()
ISettings
getDateFormat
in interface ISettings
DateFormat
public int getButtonHeight()
ISettings
getButtonHeight
in interface ISettings
public int getButtonsHorizontalSpace()
ISettings
getButtonsHorizontalSpace
in interface ISettings
public int getCarbonButtonsHorizontalSpace()
ISettings
getCarbonButtonsHorizontalSpace
in interface ISettings
public int getButtonVerticalSpace()
ISettings
getButtonVerticalSpace
in interface ISettings
public int getCarbonButtonVerticalSpace()
ISettings
getCarbonButtonVerticalSpace
in interface ISettings
public int getButtonWidth()
ISettings
getButtonWidth
in interface ISettings
public int getButtonWidthCarbon()
ISettings
getButtonWidthCarbon
in interface ISettings
public java.lang.String getNoneText()
ISettings
getNoneText
in interface ISettings
public java.lang.String getTodayText()
ISettings
getTodayText
in interface ISettings
public java.lang.String getNoDateSetText()
ISettings
getNoDateSetText
in interface ISettings
public boolean showMonthPickerOnMonthNameMousePress()
ISettings
showMonthPickerOnMonthNameMousePress
in interface ISettings
public int getCarbonButtonHeight()
ISettings
getCarbonButtonHeight
in interface ISettings
public int getCarbonButtonWidth()
ISettings
getCarbonButtonWidth
in interface ISettings
public int getGTKButtonWidth()
ISettings
getGTKButtonWidth
in interface ISettings
public int getWindowsButtonWidth()
ISettings
getWindowsButtonWidth
in interface ISettings
public java.util.Locale getLocale()
ISettings
public org.eclipse.swt.graphics.Font getCarbonDrawFont()
ISettings
getCarbonDrawFont
in interface ISettings
public org.eclipse.swt.graphics.Font getWindowsMonthPopupDrawFont()
ISettings
getWindowsMonthPopupDrawFont
in interface ISettings
public java.util.List getAdditionalDateFormats()
ISettings
getAdditionalDateFormats
in interface ISettings
DateFormat
,
ISettings.getDateFormat()
public boolean keyboardNavigatesCalendar()
ISettings
keyboardNavigatesCalendar
in interface ISettings
public char[] getAcceptedDateSeparatorChars()
ISettings
getAcceptedDateSeparatorChars
in interface ISettings
public char getCarbonArrowUpChar()
ISettings
ISettings.keyboardNavigatesCalendar()
returns true.getCarbonArrowUpChar
in interface ISettings
public char getCarbonArrowDownChar()
ISettings
ISettings.keyboardNavigatesCalendar()
returns true.getCarbonArrowDownChar
in interface ISettings