T - the type of the status bar elementpublic class StatusBarElementDescriptor<T> extends Object
| Constructor and Description |
|---|
StatusBarElementDescriptor(Class<T> statusBarElementClass,
HorizontalAlignment horizontalAlignment,
int position)
Creates a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
static StatusBarElementDescriptor<?> |
createStatusBarElementDescriptor(org.drombler.acp.core.status.jaxb.StatusBarElementType statusBarElement,
org.osgi.framework.Bundle bundle)
Creates an instance of a
StatusBarElementDescriptor from a StatusBarElementType unmarshalled from the application.xml. |
HorizontalAlignment |
getHorizontalAlignment()
Gets the horizontal alignment.
|
int |
getPosition()
Gets the preferred position.
|
Class<T> |
getStatusBarElementClass()
Gets the status bar element class.
|
public StatusBarElementDescriptor(Class<T> statusBarElementClass, HorizontalAlignment horizontalAlignment, int position)
statusBarElementClass - the status bar element classhorizontalAlignment - the horizontal alignmentposition - the preferred positionpublic Class<T> getStatusBarElementClass()
public HorizontalAlignment getHorizontalAlignment()
public int getPosition()
public static StatusBarElementDescriptor<?> createStatusBarElementDescriptor(org.drombler.acp.core.status.jaxb.StatusBarElementType statusBarElement, org.osgi.framework.Bundle bundle) throws ClassNotFoundException
StatusBarElementDescriptor from a StatusBarElementType unmarshalled from the application.xml.statusBarElement - the unmarshalled status bar elementbundle - the bundle of the application.xmlClassNotFoundExceptionCopyright © 2017–2019 Drombler. All rights reserved.