|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.border.AbstractBorder
com.jaxfront.swing.ui.tools.TitledBorder
com.jaxfront.swing.ui.tools.FunctionalTitleBorder
public class FunctionalTitleBorder
This class is the border of a OptionalPanel. It can visualise check box, arrow down or arrow up image, an image for new and an image for delete. Note that with the check box all components in the optioanl panel could be enabled or disabled, with the arrows the optional panel could be fade in or out and with new or delete a recursive view could be created or deleted.
Field Summary | |
---|---|
static int |
_imageXOffset
|
Fields inherited from class com.jaxfront.swing.ui.tools.TitledBorder |
---|
ABOVE_BOTTOM, ABOVE_TOP, BELOW_BOTTOM, BELOW_TOP, BOTTOM, CENTER, DEFAULT_JUSTIFICATION, DEFAULT_POSITION, LEADING, LEFT, RIGHT, TOP, TRAILING |
Constructor Summary | |
---|---|
FunctionalTitleBorder(javax.swing.border.Border aBorder)
Creates a OptionalTitledBorder instance with the specified border and an empty title. |
|
FunctionalTitleBorder(javax.swing.border.Border aBorder,
java.lang.String borderTitle)
Creates a OptionalTitleBorder instance with the specified border and title. |
|
FunctionalTitleBorder(javax.swing.border.Border newBorder,
java.lang.String borderTitle,
int aTitleJustification,
int aTitlePosition)
Creates a OptionalTitleBorder instance with the specified border, title, title-justification, and title-position. |
|
FunctionalTitleBorder(javax.swing.border.Border newBorder,
java.lang.String borderTitle,
int aTitleJustification,
int aTitlePosition,
java.awt.Font aTitleFont)
Creates a OptionalTitleBorder instance with the specified border, title, title-justification, title-position, and title-font. |
|
FunctionalTitleBorder(javax.swing.border.Border newBorder,
java.lang.String borderTitle,
int aTitleJustification,
int aTitlePosition,
java.awt.Font aTitleFont,
java.awt.Color aTitleColor)
Creates a OptionalTitleBorder instance with the specified border, title, title-justification, title-position, title-font, and title-color. |
|
FunctionalTitleBorder(java.lang.String borderTitle)
Creates a OptionalTitleBorder instance. |
|
FunctionalTitleBorder(java.lang.String borderTitle,
java.awt.Component parent)
|
Method Summary | |
---|---|
BorderActionSet |
addBorderAction(javax.swing.Action mainAction,
javax.swing.Action inverseAction,
java.awt.Image actionImageShadowed,
java.awt.Image inverseActionImageShadowed,
int alignment)
|
BorderActionSet |
addBorderAction(javax.swing.Action mainAction,
javax.swing.Action inverseAction,
int alignment)
|
BorderActionSet |
addBorderAction(javax.swing.Action mainAction,
int alignment)
|
void |
addBorderAction(BorderActionSet aSet)
|
void |
addBorderAction(BorderActionSet aSet,
int alignment)
|
BorderActionSet |
addBorderAction(java.lang.String name,
javax.swing.Action mainAction,
javax.swing.Action inverseAction,
java.awt.Image mainImage,
java.awt.Image inverseImage,
java.awt.Image actionImageShadowed,
java.awt.Image inverseActionImageShadowed,
java.lang.String toolTipText,
int alignment)
|
BorderActionSet |
addBorderAction(java.lang.String name,
javax.swing.Action mainAction,
javax.swing.Action inverseAction,
java.awt.Image mainImage,
java.awt.Image inverseImage,
java.lang.String toolTipText,
int alignment)
|
BorderActionSet |
addBorderAction(java.lang.String name,
javax.swing.Action mainAction,
java.awt.Image mainImage,
java.awt.Image actionImageShadowed,
java.lang.String toolTipText,
int alignment)
|
BorderActionSet |
addBorderAction(java.lang.String name,
javax.swing.Action mainAction,
java.awt.Image mainImage,
java.lang.String toolTipText,
int alignment)
|
BorderActionSet |
addBorderActionSeparator(java.awt.Image mainImage,
int alignment)
|
BorderActionSet |
addBorderActionSeparator(int alignment)
|
static java.awt.Dimension |
calculateActionAreaDimension(java.util.Vector actionSets)
|
static javax.swing.ImageIcon |
createDisabledIcon(javax.swing.ImageIcon icon)
|
void |
doAction(java.lang.Object source,
java.lang.String borderActionSetName)
|
void |
doAction(java.lang.Object source,
java.lang.String borderActionSetName,
boolean useInverse)
|
static int |
getActionAreaX(java.util.Vector actionSets)
|
BorderActionSet |
getActionInRange(java.awt.Point p)
|
BorderActionSet |
getBorderAction(java.lang.String name)
|
static java.awt.Point |
getLastMouseLocation()
|
java.util.Vector |
getRegisteredBorderActions()
|
java.awt.Component |
getRootComponent()
|
javax.swing.Action |
getTitleAction(int mouseButton)
|
java.lang.String |
getToolTipText()
|
java.lang.String |
getToolTipText(java.awt.event.MouseEvent e)
|
boolean |
isEnabled()
|
boolean |
isVisible(java.lang.String borderActionName)
|
static void |
main(java.lang.String[] args)
|
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseDragged(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mouseMoved(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
paintBorder(java.awt.Component c,
java.awt.Graphics g,
int x,
int y,
int width,
int height)
Paints the border for the specified component with the specified position and size. |
void |
release()
|
void |
removeBorderAction(BorderActionSet aSet)
|
void |
removeBorderAction(java.lang.String name)
|
void |
resetAllActions()
|
void |
setEnabled(boolean enabled)
Enables or disables this component, depending on the value of the parameter b . |
void |
setRootComponent(java.awt.Component rootComponent)
|
void |
setTitleAction(javax.swing.Action titleAction,
int mouseButton)
|
void |
setToolTipText(java.lang.String toolTipText)
|
void |
setVisible(boolean visible)
|
void |
setVisible(java.lang.String borderActionName,
boolean isActive)
|
void |
toggleActionSet(BorderActionSet aSet,
boolean toogle)
|
Methods inherited from class com.jaxfront.swing.ui.tools.TitledBorder |
---|
getBorder, getBorderInsets, getBorderInsets, getMinimumSize, getTitle, getTitleColor, getTitleFont, getTitleJustification, getTitlePosition, isBorderOpaque, isInTitelBox, setBorder, setCaptionIndent, setTitle, setTitleColor, setTitleFont, setTitleJustification, setTitlePosition |
Methods inherited from class javax.swing.border.AbstractBorder |
---|
getInteriorRectangle, getInteriorRectangle |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int _imageXOffset
Constructor Detail |
---|
public FunctionalTitleBorder(java.lang.String borderTitle)
title
- the title the border should displaypublic FunctionalTitleBorder(java.lang.String borderTitle, java.awt.Component parent)
public FunctionalTitleBorder(javax.swing.border.Border aBorder)
border
- the borderpublic FunctionalTitleBorder(javax.swing.border.Border aBorder, java.lang.String borderTitle)
border
- the bordertitle
- the title the border should displaypublic FunctionalTitleBorder(javax.swing.border.Border newBorder, java.lang.String borderTitle, int aTitleJustification, int aTitlePosition)
border
- the bordertitle
- the title the border should displaytitleJustification
- the justification for the titletitlePosition
- the position for the titlepublic FunctionalTitleBorder(javax.swing.border.Border newBorder, java.lang.String borderTitle, int aTitleJustification, int aTitlePosition, java.awt.Font aTitleFont)
border
- the bordertitle
- the title the border should displaytitleJustification
- the justification for the titletitlePosition
- the position for the titletitleFont
- the font for rendering the titlepublic FunctionalTitleBorder(javax.swing.border.Border newBorder, java.lang.String borderTitle, int aTitleJustification, int aTitlePosition, java.awt.Font aTitleFont, java.awt.Color aTitleColor)
border
- the bordertitle
- the title the border should displaytitleJustification
- the justification for the titletitlePosition
- the position for the titletitleFont
- the font of the titletitleColor
- the color of the titleMethod Detail |
---|
public void resetAllActions()
public BorderActionSet getActionInRange(java.awt.Point p)
public void paintBorder(java.awt.Component c, java.awt.Graphics g, int x, int y, int width, int height)
paintBorder
in interface javax.swing.border.Border
paintBorder
in class TitledBorder
c
- the component for which this border is being paintedg
- the paint graphicsx
- the x position of the painted bordery
- the y position of the painted borderwidth
- the width of the painted borderheight
- the height of the painted borderpublic void setEnabled(boolean enabled)
b
. An enabled component can respond to user
input and generate events. Components are enabled initially by default.
b
- If true
, this component is enabled; otherwise
this component is disabled.isEnabled()
public boolean isEnabled()
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void doAction(java.lang.Object source, java.lang.String borderActionSetName)
public void doAction(java.lang.Object source, java.lang.String borderActionSetName, boolean useInverse)
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public static void main(java.lang.String[] args)
public java.util.Vector getRegisteredBorderActions()
public void addBorderAction(BorderActionSet aSet)
public void addBorderAction(BorderActionSet aSet, int alignment)
public static final java.awt.Dimension calculateActionAreaDimension(java.util.Vector actionSets)
public static final int getActionAreaX(java.util.Vector actionSets)
public void setRootComponent(java.awt.Component rootComponent)
_rootComponent
- The _rootComponent to set.public java.awt.Component getRootComponent()
public BorderActionSet addBorderAction(java.lang.String name, javax.swing.Action mainAction, javax.swing.Action inverseAction, java.awt.Image mainImage, java.awt.Image inverseImage, java.awt.Image actionImageShadowed, java.awt.Image inverseActionImageShadowed, java.lang.String toolTipText, int alignment)
public BorderActionSet addBorderActionSeparator(java.awt.Image mainImage, int alignment)
public BorderActionSet addBorderActionSeparator(int alignment)
public BorderActionSet addBorderAction(java.lang.String name, javax.swing.Action mainAction, java.awt.Image mainImage, java.awt.Image actionImageShadowed, java.lang.String toolTipText, int alignment)
public BorderActionSet addBorderAction(java.lang.String name, javax.swing.Action mainAction, java.awt.Image mainImage, java.lang.String toolTipText, int alignment)
public BorderActionSet addBorderAction(javax.swing.Action mainAction, int alignment)
public BorderActionSet addBorderAction(javax.swing.Action mainAction, javax.swing.Action inverseAction, java.awt.Image actionImageShadowed, java.awt.Image inverseActionImageShadowed, int alignment)
public BorderActionSet addBorderAction(javax.swing.Action mainAction, javax.swing.Action inverseAction, int alignment)
public BorderActionSet addBorderAction(java.lang.String name, javax.swing.Action mainAction, javax.swing.Action inverseAction, java.awt.Image mainImage, java.awt.Image inverseImage, java.lang.String toolTipText, int alignment)
public void removeBorderAction(java.lang.String name)
public BorderActionSet getBorderAction(java.lang.String name)
public void removeBorderAction(BorderActionSet aSet)
public void toggleActionSet(BorderActionSet aSet, boolean toogle)
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
public java.lang.String getToolTipText(java.awt.event.MouseEvent e)
JComponent.getToolTipText(java.awt.event.MouseEvent)
public void setToolTipText(java.lang.String toolTipText)
_bubbleHelpText
- The _bubbleHelpText to set.public java.lang.String getToolTipText()
public void release()
public void setTitleAction(javax.swing.Action titleAction, int mouseButton)
titleAction
- The titleAction to set.public static javax.swing.ImageIcon createDisabledIcon(javax.swing.ImageIcon icon)
public void setVisible(java.lang.String borderActionName, boolean isActive)
public void setVisible(boolean visible)
public boolean isVisible(java.lang.String borderActionName)
public javax.swing.Action getTitleAction(int mouseButton)
public static java.awt.Point getLastMouseLocation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |