|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vaadin.server.AbstractClientConnector
com.vaadin.ui.AbstractComponent
com.vaadin.ui.AbstractFocusable
com.vaadin.ui.Button
org.vostok.vaadin.addon.dialog.SimpleColourWindow.ColourButton
public static class SimpleColourWindow.ColourButton
A friendly button lanncher with a preview. You can set and get colour with setColour/getColour
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.vaadin.ui.Button |
---|
com.vaadin.ui.Button.ClickEvent, com.vaadin.ui.Button.ClickListener, com.vaadin.ui.Button.ClickShortcut |
Nested classes/interfaces inherited from interface com.vaadin.ui.Component |
---|
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener |
Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector |
---|
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener |
Nested classes/interfaces inherited from interface com.vaadin.server.Sizeable |
---|
com.vaadin.server.Sizeable.Unit |
Field Summary |
---|
Fields inherited from class com.vaadin.ui.Button |
---|
clickShortcut |
Fields inherited from class com.vaadin.ui.AbstractComponent |
---|
DESIGN_ATTR_PLAIN_TEXT |
Fields inherited from interface com.vaadin.server.Sizeable |
---|
SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS |
Constructor Summary | |
---|---|
SimpleColourWindow.ColourButton()
create a new launcher button with default caption, no listener, init to black |
|
SimpleColourWindow.ColourButton(com.vaadin.shared.ui.colorpicker.Color colour)
|
|
SimpleColourWindow.ColourButton(com.vaadin.shared.ui.colorpicker.Color colour,
com.vaadin.ui.components.colorpicker.ColorChangeListener listener)
create a new launcher button |
|
SimpleColourWindow.ColourButton(java.lang.String caption)
create a new launcher button with no listener, init to black |
|
SimpleColourWindow.ColourButton(java.lang.String caption,
com.vaadin.ui.Button.ClickListener listener)
backward compatibility, always fail. |
|
SimpleColourWindow.ColourButton(java.lang.String caption,
com.vaadin.shared.ui.colorpicker.Color colour,
com.vaadin.ui.components.colorpicker.ColorChangeListener listener)
create a new launcher button |
Method Summary | |
---|---|
com.vaadin.shared.ui.colorpicker.Color |
getColour()
|
SimpleColourWindow |
getSimpleColourWindow()
SimpleColourWindow for this preview button. |
boolean |
isModal()
|
void |
setColour(com.vaadin.shared.ui.colorpicker.Color colour)
set colour for preview and on dialog |
void |
setModal(boolean modal)
|
Methods inherited from class com.vaadin.ui.Button |
---|
addClickListener, addListener, click, fireClick, fireClick, getCustomAttributes, getIconAlternateText, getState, getState, isDisableOnClick, isHtmlContentAllowed, readDesign, removeClickListener, removeClickShortcut, removeListener, setClickShortcut, setDisableOnClick, setHtmlContentAllowed, setIcon, setIconAlternateText, writeDesign |
Methods inherited from class com.vaadin.ui.AbstractFocusable |
---|
addBlurListener, addFocusListener, addListener, addListener, focus, getTabIndex, removeBlurListener, removeFocusListener, removeListener, removeListener, setTabIndex |
Methods inherited from class com.vaadin.ui.AbstractComponent |
---|
addContextClickListener, addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, getActionManager, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorMessage, getExplicitImmediateValue, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isImmediate, isOrHasAncestor, isReadOnly, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setEnabled, setHeight, setHeight, setHeightUndefined, setIcon, setId, setImmediate, setLocale, setParent, setPrimaryStyleName, setReadOnly, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setStyleName, setVisible, setWidth, setWidth, setWidthUndefined |
Methods inherited from class com.vaadin.server.AbstractClientConnector |
---|
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.vaadin.event.Action.ShortcutNotifier |
---|
addShortcutListener, removeShortcutListener |
Methods inherited from interface com.vaadin.ui.Component |
---|
addListener, addStyleName, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setReadOnly, setStyleName, setVisible |
Methods inherited from interface com.vaadin.server.ClientConnector |
---|
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler |
Methods inherited from interface com.vaadin.shared.Connector |
---|
getConnectorId |
Methods inherited from interface com.vaadin.server.Sizeable |
---|
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUndefined |
Constructor Detail |
---|
public SimpleColourWindow.ColourButton()
public SimpleColourWindow.ColourButton(java.lang.String caption)
caption
- String
for this button. Default to nonepublic SimpleColourWindow.ColourButton(java.lang.String caption, com.vaadin.ui.Button.ClickListener listener)
caption
- listener
-
java.lang.UnsupportedOperationException
- alwayspublic SimpleColourWindow.ColourButton(java.lang.String caption, com.vaadin.shared.ui.colorpicker.Color colour, com.vaadin.ui.components.colorpicker.ColorChangeListener listener)
caption
- caption for the dialog, can be null ; to add a caption for the button, use setCaption insteadcolour
- default colour. can be null, default to blacklistener
- ColorChangeListener
for change. can be nullpublic SimpleColourWindow.ColourButton(com.vaadin.shared.ui.colorpicker.Color colour, com.vaadin.ui.components.colorpicker.ColorChangeListener listener)
colour
- default colour. can be null, default to blacklistener
- ColorChangeListener
for change. can be nullpublic SimpleColourWindow.ColourButton(com.vaadin.shared.ui.colorpicker.Color colour)
colour
- Method Detail |
---|
public com.vaadin.shared.ui.colorpicker.Color getColour()
Color
current colourpublic void setColour(com.vaadin.shared.ui.colorpicker.Color colour)
colour
- Color
for colour for preview et select windowpublic SimpleColourWindow getSimpleColourWindow()
SimpleColourWindow
instance or nullpublic boolean isModal()
boolean
window modal mode. defautl to falsepublic void setModal(boolean modal)
modal
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |