qx.ui.core
Class Font

java.lang.Object
  extended by qx.core.Object
      extended by qx.ui.core.Font

public class Font
extends Object

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

Font

public Font()

Font

public Font(java.lang.String size)

Font

public Font(java.lang.String size,
            java.lang.String family)
Method Detail

_applyBold

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).


_applyDecoration

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).


_applyFamily

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).


_applyItalic

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).


_applySize

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).


generateStyle

public java.lang.String generateStyle()

Generate a style string with the current font attributes.


getBold

public boolean getBold()

Returns the (computed) value of the property bold.

For further details take a look at the property definition: bold.


getDecoration

public java.lang.Object getDecoration()

Returns the (computed) value of the property decoration.

For further details take a look at the property definition: decoration.


getFamily

public java.lang.Object getFamily()

Returns the (computed) value of the property family.

For further details take a look at the property definition: family.


getItalic

public boolean getItalic()

Returns the (computed) value of the property italic.

For further details take a look at the property definition: italic.


getSize

public java.lang.Integer getSize()

Returns the (computed) value of the property size.

For further details take a look at the property definition: size.


initBold

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.


initDecoration

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.


initFamily

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.


initItalic

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.


initSize

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.


isBold

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.


isItalic

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.


render

public void render(Widget widget)

Apply the font to the given widget.


renderElement

public void renderElement(java.lang.Object element)

Apply the font styles to the given DOM element.


renderStyle

public void renderStyle(java.lang.Object style)

Generate a style map with the current font attributes.


resetBold

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.


resetDecoration

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.


resetFamily

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.


resetItalic

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.


resetSize

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.


setBold

public void setBold(boolean arg)

Sets the user value of the property bold.

For further details take a look at the property definition: bold.


setDecoration

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.


setFamily

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.


setItalic

public void setItalic(boolean arg)

Sets the user value of the property italic.

For further details take a look at the property definition: italic.


setSize

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.


toggleBold

public boolean toggleBold()

Toggles the (computed) value of the boolean property bold.

For further details take a look at the property definition: bold.


toggleItalic

public boolean toggleItalic()

Toggles the (computed) value of the boolean property italic.

For further details take a look at the property definition: italic.



Copyright © 2008 1&1. All Rights Reserved.