|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectqx.core.Object
qx.ui.core.Font
public class Font
A wrapper for CSS font styles. Fond objects can be aplpied to widgets or DOM elements.
Constructor Summary | |
---|---|
Font()
|
|
Font(java.lang.String size)
|
|
Font(java.lang.String size,
java.lang.String family)
|
Method Summary | |
---|---|
void |
_applyBold(boolean value,
boolean old)
Applies changes of the property value of the property bold . |
void |
_applyDecoration(java.lang.Object value,
java.lang.Object old)
Applies changes of the property value of the property decoration . |
void |
_applyFamily(java.lang.Object value,
java.lang.Object old)
Applies changes of the property value of the property family . |
void |
_applyItalic(boolean value,
boolean old)
Applies changes of the property value of the property italic . |
void |
_applySize(java.lang.Integer value,
java.lang.Integer old)
Applies changes of the property value of the property size . |
java.lang.String |
generateStyle()
Generate a style string with the current font attributes. |
boolean |
getBold()
Returns the (computed) value of the property bold . |
java.lang.Object |
getDecoration()
Returns the (computed) value of the property decoration . |
java.lang.Object |
getFamily()
Returns the (computed) value of the property family . |
boolean |
getItalic()
Returns the (computed) value of the property italic . |
java.lang.Integer |
getSize()
Returns the (computed) value of the property size . |
void |
initBold(boolean arg)
Calls the apply method and dispatches the change event of the property bold
with the default value defined by the class developer. |
void |
initDecoration(java.lang.Object arg)
Calls the apply method and dispatches the change event of the property decoration
with the default value defined by the class developer. |
void |
initFamily(java.lang.Object arg)
Calls the apply method and dispatches the change event of the property family
with the default value defined by the class developer. |
void |
initItalic(boolean arg)
Calls the apply method and dispatches the change event of the property italic
with the default value defined by the class developer. |
void |
initSize(java.lang.Integer arg)
Calls the apply method and dispatches the change event of the property size
with the default value defined by the class developer. |
boolean |
isBold()
Check whether the (computed) value of the boolean property bold equals true . |
boolean |
isItalic()
Check whether the (computed) value of the boolean property italic equals true . |
void |
render(Widget widget)
Apply the font to the given widget. |
void |
renderElement(java.lang.Object element)
Apply the font styles to the given DOM element. |
void |
renderStyle(java.lang.Object style)
Generate a style map with the current font attributes. |
void |
resetBold()
Resets the user value of the property bold . |
void |
resetDecoration()
Resets the user value of the property decoration . |
void |
resetFamily()
Resets the user value of the property family . |
void |
resetItalic()
Resets the user value of the property italic . |
void |
resetSize()
Resets the user value of the property size . |
void |
setBold(boolean arg)
Sets the user value of the property bold . |
void |
setDecoration(java.lang.Object arg)
Sets the user value of the property decoration . |
void |
setFamily(java.lang.Object arg)
Sets the user value of the property family . |
void |
setItalic(boolean arg)
Sets the user value of the property italic . |
void |
setSize(java.lang.Integer arg)
Sets the user value of the property size . |
boolean |
toggleBold()
Toggles the (computed) value of the boolean property bold . |
boolean |
toggleItalic()
Toggles the (computed) value of the boolean property italic . |
Methods inherited from class qx.core.Object |
---|
_disposeFields, _disposeObjectDeep, _disposeObjects, base, dispose, get, getDisposed, isDisposed, reset, self, set, toHashCode, toString_ |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Font()
public Font(java.lang.String size)
public Font(java.lang.String size, java.lang.String family)
Method Detail |
---|
public void _applyBold(boolean value, boolean old)
Applies changes of the property value of the property bold
.
For further details take a look at the property definition: _applyBold(boolean, boolean)
.
public void _applyDecoration(java.lang.Object value, java.lang.Object old)
Applies changes of the property value of the property decoration
.
For further details take a look at the property definition: _applyDecoration(java.lang.Object, java.lang.Object)
.
public void _applyFamily(java.lang.Object value, java.lang.Object old)
Applies changes of the property value of the property family
.
For further details take a look at the property definition: _applyFamily(java.lang.Object, java.lang.Object)
.
public void _applyItalic(boolean value, boolean old)
Applies changes of the property value of the property italic
.
For further details take a look at the property definition: _applyItalic(boolean, boolean)
.
public void _applySize(java.lang.Integer value, java.lang.Integer old)
Applies changes of the property value of the property size
.
For further details take a look at the property definition: _applySize(java.lang.Integer, java.lang.Integer)
.
public java.lang.String generateStyle()
Generate a style string with the current font attributes.
public boolean getBold()
Returns the (computed) value of the property bold
.
For further details take a look at the property definition: bold
.
public java.lang.Object getDecoration()
Returns the (computed) value of the property decoration
.
For further details take a look at the property definition: decoration
.
public java.lang.Object getFamily()
Returns the (computed) value of the property family
.
For further details take a look at the property definition: family
.
public boolean getItalic()
Returns the (computed) value of the property italic
.
For further details take a look at the property definition: italic
.
public java.lang.Integer getSize()
Returns the (computed) value of the property size
.
For further details take a look at the property definition: size
.
public void initBold(boolean arg)
Calls the apply method and dispatches the change event of the property bold
with the default value defined by the class developer. This function can
only be called from the constructor of a class.
For further details take a look at the property definition: bold
.
public void initDecoration(java.lang.Object arg)
Calls the apply method and dispatches the change event of the property decoration
with the default value defined by the class developer. This function can
only be called from the constructor of a class.
For further details take a look at the property definition: decoration
.
public void initFamily(java.lang.Object arg)
Calls the apply method and dispatches the change event of the property family
with the default value defined by the class developer. This function can
only be called from the constructor of a class.
For further details take a look at the property definition: family
.
public void initItalic(boolean arg)
Calls the apply method and dispatches the change event of the property italic
with the default value defined by the class developer. This function can
only be called from the constructor of a class.
For further details take a look at the property definition: italic
.
public void initSize(java.lang.Integer arg)
Calls the apply method and dispatches the change event of the property size
with the default value defined by the class developer. This function can
only be called from the constructor of a class.
For further details take a look at the property definition: size
.
public boolean isBold()
Check whether the (computed) value of the boolean property bold
equals true
.
For further details take a look at the property definition: bold
.
public boolean isItalic()
Check whether the (computed) value of the boolean property italic
equals true
.
For further details take a look at the property definition: italic
.
public void render(Widget widget)
Apply the font to the given widget.
public void renderElement(java.lang.Object element)
Apply the font styles to the given DOM element.
public void renderStyle(java.lang.Object style)
Generate a style map with the current font attributes.
public void resetBold()
Resets the user value of the property bold
.
The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.
For further details take a look at the property definition: bold
.
public void resetDecoration()
Resets the user value of the property decoration
.
The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.
For further details take a look at the property definition: decoration
.
public void resetFamily()
Resets the user value of the property family
.
The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.
For further details take a look at the property definition: family
.
public void resetItalic()
Resets the user value of the property italic
.
The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.
For further details take a look at the property definition: italic
.
public void resetSize()
Resets the user value of the property size
.
The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.
For further details take a look at the property definition: size
.
public void setBold(boolean arg)
Sets the user value of the property bold
.
For further details take a look at the property definition: bold
.
public void setDecoration(java.lang.Object arg)
Sets the user value of the property decoration
.
For further details take a look at the property definition: decoration
.
public void setFamily(java.lang.Object arg)
Sets the user value of the property family
.
For further details take a look at the property definition: family
.
public void setItalic(boolean arg)
Sets the user value of the property italic
.
For further details take a look at the property definition: italic
.
public void setSize(java.lang.Integer arg)
Sets the user value of the property size
.
For further details take a look at the property definition: size
.
public boolean toggleBold()
Toggles the (computed) value of the boolean property bold
.
For further details take a look at the property definition: bold
.
public boolean toggleItalic()
Toggles the (computed) value of the boolean property italic
.
For further details take a look at the property definition: italic
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |