|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JComboBox
org.diamondspin.DSJComboBox
public class DSJComboBox
DSJComboBox is a replacement for JComboBox which cannot be placed in a DSFrame because they have a popup part.
Copyright 2002-2009 DiamondSpin project. All Rights Reserved. Permission to use, copy, modify and distribute this software and its documentation for educational, research and non-profit purposes, without fee, and without a written agreement is hereby granted, provided that the above copyright notice and the following three paragraphs appear in all copies. To request Permission to incorporate this software into commercial products contact one of the authors of the project.
IN NO EVENT SHALL THE AUTHORS BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS, ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE AUTHORS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. THE AUTHORS SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE AUTHORS HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JComboBox |
---|
JComboBox.AccessibleJComboBox, JComboBox.KeySelectionManager |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected DSTabletopPane |
dsTabletopPane
everything is diplayed in a DSTabletopPane. |
protected JList |
list
|
protected JScrollPane |
scrollPane1
|
protected DSFrame |
slave
|
Fields inherited from class javax.swing.JComboBox |
---|
actionCommand, dataModel, editor, isEditable, keySelectionManager, lightWeightPopupEnabled, maximumRowCount, renderer, selectedItemReminder |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
DSJComboBox(DSTabletopPane dsTabletopPane)
Constructor |
|
DSJComboBox(DSTabletopPane dsTabletopPane,
JComboBox jComboBox)
Constructor from a JComboxBox |
Method Summary | |
---|---|
Point |
getLocationOnScreen()
Gets the locationOnScreen attribute of the DSJComboBox object |
JComponent |
getPopup()
|
Dimension |
getPopupSize()
anyway this size must be constant. |
void |
hidePopup()
overload the swing menhanism which can't work here |
void |
insertItemAt(Object Element_Arg,
int Index_Arg)
overload insertItemAt to synchronize with JList |
boolean |
isPopupVisible()
overload the swing mechanism which can't work here |
void |
removeAllItems()
overload removetemAt to synchronize with JList |
void |
removeItemAt(int Index_Arg)
overload removeItemAt to synchronize with JList |
void |
repaint()
overload the swing menhanism which can't work here |
void |
setModel(ComboBoxModel model)
|
void |
showPopup()
overload the swing menhanism which can't work here |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected DSTabletopPane dsTabletopPane
protected JScrollPane scrollPane1
protected JList list
protected DSFrame slave
Constructor Detail |
---|
public DSJComboBox(DSTabletopPane dsTabletopPane, JComboBox jComboBox)
dsTabletopPane
- the container in which the combobox existsjComboBox
- Description of the Parameterpublic DSJComboBox(DSTabletopPane dsTabletopPane)
dsTabletopPane
- the container in which the combobox existsMethod Detail |
---|
public JComponent getPopup()
public final void setModel(ComboBoxModel model)
setModel
in class JComboBox
public void insertItemAt(Object Element_Arg, int Index_Arg)
insertItemAt
in class JComboBox
Element_Arg
- Description of the ParameterIndex_Arg
- Description of the Parameterpublic void removeItemAt(int Index_Arg)
removeItemAt
in class JComboBox
Index_Arg
- Description of the Parameterpublic void removeAllItems()
removeAllItems
in class JComboBox
public Dimension getPopupSize()
public Point getLocationOnScreen()
getLocationOnScreen
in class Component
public boolean isPopupVisible()
isPopupVisible
in class JComboBox
public void showPopup()
showPopup
in class JComboBox
public void repaint()
repaint
in class Component
public void hidePopup()
hidePopup
in class JComboBox
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |