java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.SplitPaneUI
javax.swing.plaf.basic.BasicSplitPaneUI
public class BasicSplitPaneUI
A Basic L&F implementation of the SplitPaneUI.
| Nested Class Summary | |
|---|---|
class |
BasicSplitPaneUI.BasicHorizontalLayoutManager
LayoutManager for JSplitPanes that have an orientation of HORIZONTAL_SPLIT. |
class |
BasicSplitPaneUI.BasicVerticalLayoutManager
LayoutManager used for JSplitPanes with an orientation of VERTICAL_SPLIT. |
class |
BasicSplitPaneUI.FocusHandler
Implementation of the FocusListener that the JSplitPane UI uses. |
class |
BasicSplitPaneUI.KeyboardDownRightHandler
Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses. |
class |
BasicSplitPaneUI.KeyboardEndHandler
Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses. |
class |
BasicSplitPaneUI.KeyboardHomeHandler
Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses. |
class |
BasicSplitPaneUI.KeyboardResizeToggleHandler
Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses. |
class |
BasicSplitPaneUI.KeyboardUpLeftHandler
Implementation of an ActionListener that the JSplitPane UI uses for handling specific key presses. |
class |
BasicSplitPaneUI.PropertyHandler
Implementation of the PropertyChangeListener that the JSplitPane UI uses. |
| Field Summary | |
|---|---|
protected int |
beginDragDividerLocation
Location of the divider when the dragging session began. |
protected BasicSplitPaneDivider |
divider
Instance of the divider for this JSplitPane. |
protected KeyStroke |
dividerResizeToggleKey
Deprecated. As of Java 2 platform v1.3. |
protected int |
dividerSize
The size of the divider while the dragging session is valid. |
protected KeyStroke |
downKey
Deprecated. As of Java 2 platform v1.3. |
protected boolean |
draggingHW
Set to true in startDragging if any of the children (not including the nonContinuousLayoutDivider) are heavy weights. |
protected KeyStroke |
endKey
Deprecated. As of Java 2 platform v1.3. |
protected FocusListener |
focusListener
Instance of the FocusListener for this JSplitPane. |
protected KeyStroke |
homeKey
Deprecated. As of Java 2 platform v1.3. |
protected static int |
KEYBOARD_DIVIDER_MOVE_OFFSET
How far (relative) the divider does move when it is moved around by the cursor keys on the keyboard. |
protected ActionListener |
keyboardDownRightListener
Deprecated. As of Java 2 platform v1.3. |
protected ActionListener |
keyboardEndListener
Deprecated. As of Java 2 platform v1.3. |
protected ActionListener |
keyboardHomeListener
Deprecated. As of Java 2 platform v1.3. |
protected ActionListener |
keyboardResizeToggleListener
Deprecated. As of Java 2 platform v1.3. |
protected ActionListener |
keyboardUpLeftListener
Deprecated. As of Java 2 platform v1.3. |
protected BasicSplitPaneUI.BasicHorizontalLayoutManager |
layoutManager
LayoutManager that is created and placed into the split pane. |
protected KeyStroke |
leftKey
Deprecated. As of Java 2 platform v1.3. |
protected static String |
NON_CONTINUOUS_DIVIDER
The divider used for non-continuous layout is added to the split pane with this object. |
protected Component |
nonContinuousLayoutDivider
Instance for the shadow of the divider when non continuous layout is being used. |
protected PropertyChangeListener |
propertyChangeListener
Instance of the PropertyChangeListener for this JSplitPane. |
protected KeyStroke |
rightKey
Deprecated. As of Java 2 platform v1.3. |
protected JSplitPane |
splitPane
JSplitPane instance this instance is providing the look and feel for. |
protected KeyStroke |
upKey
Deprecated. As of Java 2 platform v1.3. |
| Constructor Summary | |
|---|---|
BasicSplitPaneUI()
|
|
| Method Summary | |
|---|---|
BasicSplitPaneDivider |
createDefaultDivider()
Creates the default divider. |
protected Component |
createDefaultNonContinuousLayoutDivider()
Returns the default non continuous layout divider, which is an instanceof Canvas that fills the background in dark gray. |
protected FocusListener |
createFocusListener()
Creates a FocusListener for the JSplitPane UI. |
protected ActionListener |
createKeyboardDownRightListener()
Deprecated. As of Java 2 platform v1.3. |
protected ActionListener |
createKeyboardEndListener()
Deprecated. As of Java 2 platform v1.3. |
protected ActionListener |
createKeyboardHomeListener()
Deprecated. As of Java 2 platform v1.3. |
protected ActionListener |
createKeyboardResizeToggleListener()
Deprecated. As of Java 2 platform v1.3. |
protected ActionListener |
createKeyboardUpLeftListener()
Deprecated. As of Java 2 platform v1.3. |
protected PropertyChangeListener |
createPropertyChangeListener()
Creates a PropertyChangeListener for the JSplitPane UI. |
static ComponentUI |
createUI(JComponent x)
Creates a new BasicSplitPaneUI instance |
protected void |
dragDividerTo(int location)
Messaged during a dragging session to move the divider to the passed in location. |
protected void |
finishDraggingTo(int location)
Messaged to finish the dragging session. |
void |
finishedPaintingChildren(JSplitPane jc,
Graphics g)
Messaged after the JSplitPane the receiver is providing the look and feel for paints its children. |
BasicSplitPaneDivider |
getDivider()
Returns the divider between the top Components. |
protected int |
getDividerBorderSize()
Deprecated. As of Java 2 platform v1.3, instead set the border on the divider. |
int |
getDividerLocation(JSplitPane jc)
Returns the location of the divider, which may differ from what the splitpane thinks the location of the divider is. |
Insets |
getInsets(JComponent jc)
Returns the insets. |
int |
getLastDragLocation()
Returns the last drag location of the JSplitPane. |
int |
getMaximumDividerLocation(JSplitPane jc)
Gets the maximum location of the divider. |
Dimension |
getMaximumSize(JComponent jc)
Returns the maximum size for the passed in component, This is passed off to the current layoutmanager. |
int |
getMinimumDividerLocation(JSplitPane jc)
Gets the minimum location of the divider. |
Dimension |
getMinimumSize(JComponent jc)
Returns the minimum size for the passed in component, This is passed off to the current layoutmanager. |
Component |
getNonContinuousLayoutDivider()
Returns the divider to use when the splitPane is configured to not continuously layout. |
int |
getOrientation()
Returns the orientation for the JSplitPane. |
Dimension |
getPreferredSize(JComponent jc)
Returns the preferred size for the passed in component, This is passed off to the current layoutmanager. |
JSplitPane |
getSplitPane()
Returns the splitpane this instance is currently contained in. |
protected void |
installDefaults()
Installs the UI defaults. |
protected void |
installKeyboardActions()
Installs the keyboard actions for the UI. |
protected void |
installListeners()
Installs the event listeners for the UI. |
void |
installUI(JComponent c)
Installs the UI. |
boolean |
isContinuousLayout()
Determines wether the JSplitPane is set to use a continuous layout. |
void |
paint(Graphics g,
JComponent jc)
Messaged to paint the look and feel. |
protected void |
resetLayoutManager()
Resets the layout manager based on orientation and messages it with invalidateLayout to pull in appropriate Components. |
void |
resetToPreferredSizes(JSplitPane jc)
Messaged to reset the preferred sizes. |
void |
setContinuousLayout(boolean b)
Turn continuous layout on/off. |
void |
setDividerLocation(JSplitPane jc,
int location)
Sets the location of the divider to location. |
void |
setLastDragLocation(int l)
Set the last drag location of the JSplitPane. |
protected void |
setNonContinuousLayoutDivider(Component newDivider)
Sets the divider to use when the splitPane is configured to not continuously layout. |
protected void |
setNonContinuousLayoutDivider(Component newDivider,
boolean rememberSizes)
Sets the divider to use. |
void |
setOrientation(int orientation)
Set the orientation for the JSplitPane. |
protected void |
startDragging()
Should be messaged before the dragging session starts, resets lastDragLocation and dividerSize. |
protected void |
uninstallDefaults()
Uninstalls the UI defaults. |
protected void |
uninstallKeyboardActions()
Uninstalls the keyboard actions for the UI. |
protected void |
uninstallListeners()
Uninstalls the event listeners for the UI. |
void |
uninstallUI(JComponent c)
Uninstalls the UI. |
| Methods inherited from class javax.swing.plaf.ComponentUI |
|---|
contains, getAccessibleChild, getAccessibleChildrenCount, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String NON_CONTINUOUS_DIVIDER
protected static int KEYBOARD_DIVIDER_MOVE_OFFSET
protected JSplitPane splitPane
protected BasicSplitPaneUI.BasicHorizontalLayoutManager layoutManager
protected BasicSplitPaneDivider divider
protected PropertyChangeListener propertyChangeListener
protected FocusListener focusListener
protected int dividerSize
protected Component nonContinuousLayoutDivider
protected boolean draggingHW
protected int beginDragDividerLocation
@Deprecated protected KeyStroke upKey
@Deprecated protected KeyStroke downKey
@Deprecated protected KeyStroke leftKey
@Deprecated protected KeyStroke rightKey
@Deprecated protected KeyStroke homeKey
@Deprecated protected KeyStroke endKey
@Deprecated protected KeyStroke dividerResizeToggleKey
@Deprecated protected ActionListener keyboardUpLeftListener
@Deprecated protected ActionListener keyboardDownRightListener
@Deprecated protected ActionListener keyboardHomeListener
@Deprecated protected ActionListener keyboardEndListener
@Deprecated protected ActionListener keyboardResizeToggleListener
| Constructor Detail |
|---|
public BasicSplitPaneUI()
| Method Detail |
|---|
public static ComponentUI createUI(JComponent x)
public void installUI(JComponent c)
installUI in class ComponentUIc - the component where this UI delegate is being installedComponentUI.uninstallUI(javax.swing.JComponent),
JComponent.setUI(javax.swing.plaf.ComponentUI),
JComponent.updateUI()protected void installDefaults()
protected void installListeners()
protected void installKeyboardActions()
public void uninstallUI(JComponent c)
uninstallUI in class ComponentUIc - the component from which this UI delegate is being removed;
this argument is often ignored,
but might be used if the UI object is stateless
and shared by multiple componentsComponentUI.installUI(javax.swing.JComponent),
JComponent.updateUI()protected void uninstallDefaults()
protected void uninstallListeners()
protected void uninstallKeyboardActions()
protected PropertyChangeListener createPropertyChangeListener()
protected FocusListener createFocusListener()
@Deprecated protected ActionListener createKeyboardUpLeftListener()
installKeyboardActions and
placing the Action in the SplitPane's ActionMap. Please refer to
the key bindings specification for further details.
Creates a ActionListener for the JSplitPane UI that listens for specific key presses.
@Deprecated protected ActionListener createKeyboardDownRightListener()
installKeyboardActions and
placing the Action in the SplitPane's ActionMap. Please refer to
the key bindings specification for further details.
Creates a ActionListener for the JSplitPane UI that listens for specific key presses.
@Deprecated protected ActionListener createKeyboardHomeListener()
installKeyboardActions and
placing the Action in the SplitPane's ActionMap. Please refer to
the key bindings specification for further details.
Creates a ActionListener for the JSplitPane UI that listens for specific key presses.
@Deprecated protected ActionListener createKeyboardEndListener()
installKeyboardActions and
placing the Action in the SplitPane's ActionMap. Please refer to
the key bindings specification for further details.
Creates a ActionListener for the JSplitPane UI that listens for specific key presses.
@Deprecated protected ActionListener createKeyboardResizeToggleListener()
installKeyboardActions and
placing the Action in the SplitPane's ActionMap. Please refer to
the key bindings specification for further details.
Creates a ActionListener for the JSplitPane UI that listens for specific key presses.
public int getOrientation()
public void setOrientation(int orientation)
public boolean isContinuousLayout()
public void setContinuousLayout(boolean b)
public int getLastDragLocation()
public void setLastDragLocation(int l)
public BasicSplitPaneDivider getDivider()
protected Component createDefaultNonContinuousLayoutDivider()
protected void setNonContinuousLayoutDivider(Component newDivider)
protected void setNonContinuousLayoutDivider(Component newDivider, boolean rememberSizes)
public Component getNonContinuousLayoutDivider()
public JSplitPane getSplitPane()
public BasicSplitPaneDivider createDefaultDivider()
public void resetToPreferredSizes(JSplitPane jc)
resetToPreferredSizes in class SplitPaneUIpublic void setDividerLocation(JSplitPane jc, int location)
setDividerLocation in class SplitPaneUIpublic int getDividerLocation(JSplitPane jc)
getDividerLocation in class SplitPaneUIpublic int getMinimumDividerLocation(JSplitPane jc)
getMinimumDividerLocation in class SplitPaneUIpublic int getMaximumDividerLocation(JSplitPane jc)
getMaximumDividerLocation in class SplitPaneUIpublic void finishedPaintingChildren(JSplitPane jc, Graphics g)
finishedPaintingChildren in class SplitPaneUIpublic void paint(Graphics g, JComponent jc)
paint in class ComponentUIg - the Graphics context in which to paintjc - the component being painted;
this argument is often ignored,
but might be used if the UI object is stateless
and shared by multiple componentsComponentUI.update(java.awt.Graphics, javax.swing.JComponent)public Dimension getPreferredSize(JComponent jc)
getPreferredSize in class ComponentUIjc - the component whose preferred size is being queried;
this argument is often ignored,
but might be used if the UI object is stateless
and shared by multiple componentsJComponent.getPreferredSize(),
LayoutManager.preferredLayoutSize(java.awt.Container)public Dimension getMinimumSize(JComponent jc)
getMinimumSize in class ComponentUIjc - the component whose minimum size is being queried;
this argument is often ignored,
but might be used if the UI object is stateless
and shared by multiple components
Dimension object or nullJComponent.getMinimumSize(),
LayoutManager.minimumLayoutSize(java.awt.Container),
ComponentUI.getPreferredSize(javax.swing.JComponent)public Dimension getMaximumSize(JComponent jc)
getMaximumSize in class ComponentUIjc - the component whose maximum size is being queried;
this argument is often ignored,
but might be used if the UI object is stateless
and shared by multiple components
Dimension object or nullJComponent.getMaximumSize(),
LayoutManager2.maximumLayoutSize(java.awt.Container)public Insets getInsets(JComponent jc)
protected void resetLayoutManager()
protected void startDragging()
protected void dragDividerTo(int location)
protected void finishDraggingTo(int location)
@Deprecated protected int getDividerBorderSize()
Returns the width of one side of the divider border.
Ces informations proviennent du site de http://java.sun.com
Le contenu de cette page provient du site de Sun, et est généré depuis un cache sur l'infobrol après certains traitements automatisés. La présentation peut donc différer du document original, mais le contenu aussi. Vous pouvez utiliser ce bouton pour afficher la page originale du site de Sun :
Maintenir les pages en cache sur différents sites peut offrir plus de disponibilité.
Chaque page est indexée dans la base de donnée, ce qui permet de retrouver facilement les informations, au moyen des sommaires, du moteur de recherche interne, etc.
Des facilités sont mises en place pour que les membres de l'infobrol puissent effectuer des traductions en français des différents documents. Ceci devrait permettre aux débutants en programmation Java de consulter les API en français s'ils maîtrisent moins bien la langue de Shakespeare. Dans le cas où une traduction a été soumise, elle est disponible au moyen d'un lien en bas de page. Si la traduction a été validée, la page s'affiche par défaut en français, et un lien en bas de page permet d'atteindre la version en anglais.
Le code sur l'infobrol est automatiquement coloré selon la syntaxe, et les différents mots clés sont transformés en liens pour accéder rapidement aux informations.
Vous avez la possibilité de partager vos expériences en proposant vos propres extraits de code en utilisant le bouton "ajouter un commentaire" en bas de page. Si vous visitez simplement l'infobrol, vous avez déjà accès à cette fonction, mais si vous étes membre du brol, vous pouvez en plus utiliser des boutons supplémentaires de mise en forme, dont la coloration automatique de vos extraits de codes.
Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher les interactions avec les réseaux sociaux sur ces pages.
8 mots clés dont 0 définis manuellement (plus d'information...).
Avertissement
Cette page ne possède pas encore de mots clés manuels, ceci est donc un exemple automatique (les niveaux de pertinence sont fictifs, mais les liens sont valables). Pour tester le nuage avec une page qui contient des mots définis manuellement, vous pouvez cliquer ici.Vous pouvez modifier vos préférences dans votre profil pour ne plus afficher le nuage de mots clés.
Recherche (afficher)
Utilisateur (masquer)
Navigation (masquer)
Apparence (afficher)
Stats (afficher)
Citation (masquer)