|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.cogroo.addon.dialogs.reporterror.DialogBuilder
public class DialogBuilder
Field Summary | |
---|---|
static int |
HORIZONTAL_ALIGNMENT_CENTER
|
static int |
HORIZONTAL_ALIGNMENT_LEFT
|
static int |
HORIZONTAL_ALIGNMENT_RIGHT
|
Constructor Summary | |
---|---|
DialogBuilder(com.sun.star.uno.XComponentContext context,
int x,
int y,
int width,
int height,
String title)
Create a new dialog builder. |
|
DialogBuilder(com.sun.star.uno.XComponentContext context,
int x,
int y,
int width,
int height,
String title,
int backgroundColor)
|
Method Summary | |
---|---|
com.sun.star.awt.XButton |
addButton(String title,
String name,
int x,
int y,
int width,
int height)
|
com.sun.star.awt.XCheckBox |
addCheckBox(boolean state,
String name,
int x,
int y,
int width,
int height)
|
com.sun.star.awt.XComboBox |
addComboBox(String[] items,
String name,
int x,
int y,
int width,
int height)
|
void |
addImage(String url,
String name,
int x,
int y,
int width,
int height,
boolean scale)
|
void |
addImage(String url,
String name,
int x,
int y,
int width,
int height,
boolean scale,
short border)
|
com.sun.star.awt.XFixedText |
addLabel(String text,
String name,
int x,
int y,
int width,
int height)
|
com.sun.star.awt.XFixedText |
addLabel(String text,
String name,
int x,
int y,
int width,
int height,
int alignment)
|
com.sun.star.awt.XListBox |
addListBox(String[] items,
String name,
int x,
int y,
int width,
int height)
|
com.sun.star.awt.XFixedText |
addMultiLineLabel(String text,
String name,
int x,
int y,
int width,
int height)
|
com.sun.star.awt.XTextComponent |
addPasswordField(char[] password,
String name,
int x,
int y,
int width,
int height)
Create a password field |
com.sun.star.awt.XTextComponent |
addTextArea(String content,
String name,
int x,
int y,
int width,
int height)
Create a textarea with given content. |
com.sun.star.awt.XTextComponent |
addTextArea(String content,
String name,
int x,
int y,
int width,
int height,
boolean readonly)
Create a textarea with given content. |
com.sun.star.awt.XTextComponent |
addTextField(String content,
String name,
int x,
int y,
int width,
int height)
Create a single line textfield with the given content. |
static String |
createUniqueName(com.sun.star.container.XNameAccess _xElementContainer,
String _sElementName)
makes a String unique by appending a numerical suffix |
static void |
dispose(com.sun.star.awt.XDialog dialog)
|
com.sun.star.awt.XDialog |
getDialog()
|
com.sun.star.container.XNameContainer |
getModelContainer()
|
String |
getTextContent(String componentName)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int HORIZONTAL_ALIGNMENT_LEFT
public static final int HORIZONTAL_ALIGNMENT_CENTER
public static final int HORIZONTAL_ALIGNMENT_RIGHT
Constructor Detail |
---|
public DialogBuilder(com.sun.star.uno.XComponentContext context, int x, int y, int width, int height, String title)
context
- the OOo contextx
- initial horizontal positony
- initial vertical positionwidth
- initial widthheight
- initial heighttitle
- titlepublic DialogBuilder(com.sun.star.uno.XComponentContext context, int x, int y, int width, int height, String title, int backgroundColor)
Method Detail |
---|
public com.sun.star.awt.XButton addButton(String title, String name, int x, int y, int width, int height) throws com.sun.star.uno.Exception
com.sun.star.uno.Exception
public com.sun.star.awt.XFixedText addLabel(String text, String name, int x, int y, int width, int height) throws com.sun.star.uno.Exception
com.sun.star.uno.Exception
public com.sun.star.awt.XFixedText addLabel(String text, String name, int x, int y, int width, int height, int alignment) throws com.sun.star.uno.Exception
com.sun.star.uno.Exception
public com.sun.star.awt.XFixedText addMultiLineLabel(String text, String name, int x, int y, int width, int height) throws com.sun.star.uno.Exception
com.sun.star.uno.Exception
public com.sun.star.awt.XListBox addListBox(String[] items, String name, int x, int y, int width, int height) throws com.sun.star.uno.Exception
com.sun.star.uno.Exception
public com.sun.star.awt.XComboBox addComboBox(String[] items, String name, int x, int y, int width, int height) throws com.sun.star.uno.Exception
com.sun.star.uno.Exception
public com.sun.star.awt.XTextComponent addTextField(String content, String name, int x, int y, int width, int height) throws com.sun.star.uno.Exception
content
- name
- x
- y
- width
- height
-
com.sun.star.uno.Exception
public com.sun.star.awt.XTextComponent addTextArea(String content, String name, int x, int y, int width, int height) throws com.sun.star.uno.Exception
content
- name
- x
- y
- width
- height
-
com.sun.star.uno.Exception
public com.sun.star.awt.XTextComponent addTextArea(String content, String name, int x, int y, int width, int height, boolean readonly) throws com.sun.star.uno.Exception
content
- name
- x
- y
- width
- height
-
com.sun.star.uno.Exception
public com.sun.star.awt.XTextComponent addPasswordField(char[] password, String name, int x, int y, int width, int height) throws com.sun.star.uno.Exception
password
- , the content will be overriden after setting to the fieldname
- x
- y
- width
- height
-
com.sun.star.uno.Exception
public void addImage(String url, String name, int x, int y, int width, int height, boolean scale) throws com.sun.star.uno.Exception
com.sun.star.uno.Exception
public void addImage(String url, String name, int x, int y, int width, int height, boolean scale, short border) throws com.sun.star.uno.Exception
com.sun.star.uno.Exception
public com.sun.star.awt.XCheckBox addCheckBox(boolean state, String name, int x, int y, int width, int height) throws com.sun.star.uno.Exception
com.sun.star.uno.Exception
public com.sun.star.awt.XDialog getDialog()
public static void dispose(com.sun.star.awt.XDialog dialog)
public com.sun.star.container.XNameContainer getModelContainer()
public String getTextContent(String componentName) throws com.sun.star.container.NoSuchElementException, com.sun.star.lang.WrappedTargetException
com.sun.star.container.NoSuchElementException
com.sun.star.lang.WrappedTargetException
public static String createUniqueName(com.sun.star.container.XNameAccess _xElementContainer, String _sElementName)
_xElementContainer
- the com.sun.star.container.XNameAccess container
that the new Element is going to be inserted to_sElementName
- the StemName of the Element
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |