public class FontHeaderBarExtension extends ViewHeaderBarExtension
View
with font size operations.
FontHeaderBarExtension(View, float, boolean, LanguageFile, String)
to specify a language file from which
labels, tooltips and messages are read by the given language id. The following language labels are available:
Resources.LANGUAGE_FILE
.langFile, langID, separated, view
Constructor and Description |
---|
FontHeaderBarExtension(View view,
float normalFontSize,
boolean separated,
LanguageFile langFile,
java.lang.String langID)
Creates a new font header bar extension.
|
Modifier and Type | Method and Description |
---|---|
protected void |
createExtension()
Creates the extension.
|
addComponent, addSeparator, apply, remove
public FontHeaderBarExtension(View view, float normalFontSize, boolean separated, LanguageFile langFile, java.lang.String langID) throws java.lang.IllegalArgumentException
LanguageFile
and a language id to display language dependent
messages and tooltips in the extension. The following language labels are available:
view
- the view its header bar should be extended by this extensionnormalFontSize
- the normal or default font sizeseparated
- true
if a separator should be added automatically at the end of creating the extension otherwise false
langFile
- the language file or null
if the extension should not use language dependent labels, tooltips or messages (in this case the predefined labels, tooltips and messages should be shown)langID
- the language idjava.lang.IllegalArgumentException
- < 1
protected void createExtension()
ViewHeaderBarExtension
ViewHeaderBarExtension.addComponent(JComponent)
and ViewHeaderBarExtension.addSeparator()
to create your extension.
createExtension
in class ViewHeaderBarExtension