public class CmsSmallElementsHandler
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static int |
NECESSARY_HEIGHT
The height necessary for a container page element.
|
构造器和说明 |
---|
CmsSmallElementsHandler(I_CmsContainerpageServiceAsync service)
Creates a new small elements handler.
|
限定符和类型 | 方法和说明 |
---|---|
boolean |
areSmallElementsEditable()
Returns true if currently small elements are editable.
|
static java.lang.String |
getNecessaryHeight()
Returns the necessary height as a CSS height string in pixels.
|
boolean |
hasSmallElements()
Returns true if any small elements are present.
|
protected void |
internalSetEditSmallElements(boolean editable)
Sets the mode for displaying small elements.
|
static boolean |
isSmall(com.google.gwt.user.client.ui.Widget widget)
Checks if a given widget counts as 'small'.
|
void |
prepareSmallElement(com.google.gwt.user.client.ui.Widget widget)
Prepares a small element.
|
void |
setEditSmallElements(boolean editable,
boolean save)
Enables or disables editing for small elements and optionally saves the setting.
|
public static int NECESSARY_HEIGHT
public CmsSmallElementsHandler(I_CmsContainerpageServiceAsync service)
service
- public static java.lang.String getNecessaryHeight()
public static boolean isSmall(com.google.gwt.user.client.ui.Widget widget)
widget
- the widget to checkpublic boolean areSmallElementsEditable()
public boolean hasSmallElements()
public void prepareSmallElement(com.google.gwt.user.client.ui.Widget widget)
widget
- the small elementpublic void setEditSmallElements(boolean editable, boolean save)
editable
- if true, enables editing for small elementssave
- true if the setting should be savedprotected void internalSetEditSmallElements(boolean editable)
editable
- if true, small elements will be enlarged and their edit buttons shown; if false, the edit buttons will be hidden