public class DateTimePlugin extends Plugin
Constructor and Description |
---|
DateTimePlugin()
Construct datetime plugin.
|
Modifier and Type | Method and Description |
---|---|
protected void |
definePluginSettings(StringBuffer buffer)
Define configuration settings for this plugin.
|
PluginButton |
getDateButton() |
PluginButton |
getTimeButton() |
void |
setDateFormat(String dateFormat)
Date variables:
%y year as a decimal number without a century (range 00 to 99)
%Y year as a decimal number including the century
%d day of the month as a decimal number (range 01 to 31)
%m month as a decimal number (range 01 to 12)
%D same as %m/%d/%y
%% a literal "%" character
|
void |
setTimeFormat(String timeFormat)
Time variables:
%r time in a.m.
|
define, definePluginExtensions, getPluginPath, setPluginPath
public PluginButton getDateButton()
public PluginButton getTimeButton()
public void setTimeFormat(String timeFormat)
timeFormat
- the time formatpublic void setDateFormat(String dateFormat)
dateFormat
- date formatprotected void definePluginSettings(StringBuffer buffer)
Plugin
I.e. the "paste" plugin can be configured with different settings such as: "paste_callback" etc.
definePluginSettings
in class Plugin
buffer
- buffer to append toCopyright © 2015. All rights reserved.