public final class Title extends NativeObjectContainer implements IsDefaultTitle
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkAndAddToParent()
Called recursively when a property has been set in the item.
This is mandatory because it could happen that the parent item is not present, therefore it must be added. |
protected Key |
getChildKey()
Returns the property name to use to add this element to its parent.
|
protected D |
getDefaultValues()
Returns the default provider instance.
|
Fonter |
getFonter()
Returns a fonter instance to use into default methods of this interface.
|
double |
getLineHeight()
Returns the height of an individual line of text.
|
String |
getLineHeightAsString()
Returns the height of an individual line of text.
|
int |
getPadding()
Returns the padding to apply around labels.
|
protected P |
getParent()
Returns the parent element.
|
Position |
getPosition()
Returns the position of title.
|
List<String> |
getText()
Returns the title text to display, as a list of strings.
|
boolean |
isDisplay()
Returns
true if the title is shown. |
boolean |
isFullWidth()
Returns
true if marks that this box should take the full width of the canvas (pushing down other boxes) |
protected void |
setCallbackToModel(org.pepstock.charba.client.options.AbstractModel<?,?> model,
Key key,
CallbackProxy.Proxy proxy)
Adds a proxy function (for callbacks) to a model at the specific key.
|
void |
setDisplay(boolean display)
Sets
true if the title is shown. |
protected void |
setEventToModel(org.pepstock.charba.client.options.AbstractModel<?,?> model,
Key key,
CallbackProxy.Proxy proxy)
Adds a proxy function (for events) to a model at the specific key.
|
void |
setFullWidth(boolean fullWidth)
If
true, marks that this box should take the full width of the canvas (pushing down other boxes). |
void |
setLineHeight(double lineHeight)
Sets the height of an individual line of text.
|
void |
setLineHeight(String lineHeight)
Sets the height of an individual line of text.
|
void |
setPadding(int padding)
Sets the padding to apply around labels.
|
void |
setPosition(Position position)
Sets the position of title.
|
void |
setText(String... text)
Sets the title text to display.
|
checkValue, getArrayValue, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, keys, remove, remove, removeIfExists, setArrayValue, setArrayValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, typeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLineHeightgetFontColorAsString, getFontFamily, getFontSize, getFontStylegetFontColor, getFontColorAsString, getFontFamily, getFontSize, getFontStyle, setFontColor, setFontColor, setFontFamily, setFontSize, setFontStylepublic void setDisplay(boolean display)
true if the title is shown.display - if true the title is shown.public boolean isDisplay()
true if the title is shown.isDisplay in interface IsDefaultTitletrue the title is shown.public void setPosition(Position position)
position - the position of title.public Position getPosition()
getPosition in interface IsDefaultTitlepublic void setPadding(int padding)
padding - padding to apply around labels. Only top and bottom are implemented.public int getPadding()
getPadding in interface IsDefaultTitlepublic void setFullWidth(boolean fullWidth)
true, marks that this box should take the full width of the canvas (pushing down other boxes).fullWidth - if true, marks that this box should take the full width of the canvas (pushing down other
boxes)public boolean isFullWidth()
true if marks that this box should take the full width of the canvas (pushing down other boxes)isFullWidth in interface IsDefaultTitletrue if marks that this box should take the full width of the canvas (pushing down other boxes).public void setText(String... text)
text - the title text to display. If specified as an array, text is rendered on multiple lines.public List<String> getText()
public final Fonter getFonter()
HasFontpublic final void setLineHeight(double lineHeight)
lineHeight - height of an individual line of text.public final void setLineHeight(String lineHeight)
lineHeight - height of an individual line of text.public final double getLineHeight()
public final String getLineHeightAsString()
protected final Key getChildKey()
null if is a root element.protected final P getParent()
null if is a root element.protected final D getDefaultValues()
protected final void setEventToModel(org.pepstock.charba.client.options.AbstractModel<?,?> model,
Key key,
CallbackProxy.Proxy proxy)
model - element where adding the function proxykey - property name to use to add the function proxyproxy - the function proxy instance to addprotected final void setCallbackToModel(org.pepstock.charba.client.options.AbstractModel<?,?> model,
Key key,
CallbackProxy.Proxy proxy)
model - element where adding the function proxykey - property name to use to add the function proxyproxy - the function proxy instance to addprotected final void checkAndAddToParent()