public class DialogBuilder.DialogPart extends Object
Modifier and Type | Method and Description |
---|---|
void |
addComponent(JComponent component) |
void |
addComponents(JComponent... components) |
DialogBuilder.DialogPart |
addHorizontalDialogPart()
Add a dialog part where the components are layout horizontally.
|
DialogBuilder.DialogPart |
addHorizontalDialogPart(JComponent... content)
Add a dialog part, child of this dialog part, where the components are layout horizontally.
|
DialogBuilder.DialogPart |
addHorizontalDialogPart(String id)
Add a dialog part where the components are layout horizontally.
|
DialogBuilder.DialogPart |
addHorizontalDialogPart(String title,
JComponent... content)
Add a dialog part, child of this dialog part, where the components are layout horizontally.
|
DialogBuilder.DialogPart |
addHorizontalDialogPart(String id,
String title,
JComponent... content)
Add a dialog part, child of this dialog part, where the components are layout horizontally.
|
DialogBuilder.DialogPart |
addVerticalDialogPart()
Add a dialog part where the components are layout vertically.
|
DialogBuilder.DialogPart |
addVerticalDialogPart(JComponent... content)
Add a dialog part, child of this dialog part, where the components are layout vertically.
|
DialogBuilder.DialogPart |
addVerticalDialogPart(String id)
Add a dialog part where the components are layout vertically.
|
DialogBuilder.DialogPart |
addVerticalDialogPart(String title,
JComponent... content)
Add a dialog part, child of this dialog part, where the components are layout vertically.
|
DialogBuilder.DialogPart |
addVerticalDialogPart(String id,
String title,
JComponent... content)
Add a dialog part, child of this dialog part, where the components are layout vertically.
|
JComponent |
getContentParent()
Return the parent.
|
String |
getID()
Return the dialog Part id.
|
JComponent |
getNotDisablingComponent()
Return the component which will never be disabled by the
setEnabled(boolean) method. |
boolean |
isEnabled()
Return true if the content is enabled.
|
void |
setBorder(Border border)
Set the dialog part border.
|
void |
setEnabled(boolean b)
Set if the content is enabled.
|
void |
setLineBorder(Color color)
Set the dialog part line border.
|
void |
setNotDisablingComponent(JComponent comp)
Set a component which will never be disabled by the
setEnabled(boolean) method. |
void |
setTitledBorder(String title)
Set the dialog part titled border.
|
public void addComponent(JComponent component)
public void addComponents(JComponent... components)
public JComponent getContentParent()
public DialogBuilder.DialogPart addHorizontalDialogPart(String title, JComponent... content)
content
- the dialog part contenttitle
- the dialog part titlepublic DialogBuilder.DialogPart addHorizontalDialogPart(String id, String title, JComponent... content)
id
- the dialog part idcontent
- the dialog part contenttitle
- the dialog part titlepublic DialogBuilder.DialogPart addVerticalDialogPart(String title, JComponent... content)
content
- the dialog part contenttitle
- the dialog part titlepublic DialogBuilder.DialogPart addVerticalDialogPart(String id, String title, JComponent... content)
id
- the dialog part id (can be null)content
- the dialog part contenttitle
- the dialog part title (can be null)public DialogBuilder.DialogPart addVerticalDialogPart(JComponent... content)
content
- the dialog part content componentspublic DialogBuilder.DialogPart addHorizontalDialogPart(JComponent... content)
content
- the dialog part contentpublic DialogBuilder.DialogPart addVerticalDialogPart()
public DialogBuilder.DialogPart addVerticalDialogPart(String id)
id
- the dialog part idpublic DialogBuilder.DialogPart addHorizontalDialogPart()
public DialogBuilder.DialogPart addHorizontalDialogPart(String id)
id
- the id of the dialog partpublic void setNotDisablingComponent(JComponent comp)
setEnabled(boolean)
method.comp
- the componentpublic JComponent getNotDisablingComponent()
setEnabled(boolean)
method. May return null.public boolean isEnabled()
public void setEnabled(boolean b)
b
- true if the content is enabledpublic String getID()
public void setBorder(Border border)
border
- the borderpublic void setLineBorder(Color color)
color
- the line border colorpublic void setTitledBorder(String title)
title
- the titled border title