org.apache.cayenne.modeler.util.MultiColumnBrowser.class Maven / Gradle / Ivy
???? 4? ?
?
h ? ? ?
? ?
?
?
?
? ? ?
? ? ?
? ?
? ? ? ? ? ? ? ? ?
?
?
'
'
. ?
?
2
4 ?
?
!
;"
#
$
%
&
' ?
'(
C)
C*
+
',
' ?-
.
/
'0
1 P2 P34
P5
*
67
8
9
:;
X"
T<
=>
'?@A
'B
CD
E
F
GHI
JK LM MultiColumnBrowserRenderer InnerClasses PanelController BrowserPanelN ColumnListModel
rightArrow Ljavax/swing/ImageIcon; DEFAULT_MIN_COLUMNS_COUNT I
ConstantValue
minColumns renderer Ljavax/swing/ListCellRenderer; model Ljavax/swing/tree/TreeModel;
selectionPath [Ljava/lang/Object; preferredColumnSize Ljava/awt/Dimension; columns Ljava/util/List; Signature SLjava/util/List; browserSelector )Ljavax/swing/event/ListSelectionListener; treeSelectionListeners ;Ljava/util/List; fireDisabled Z ()V Code LineNumberTable LocalVariableTable this 4Lorg/apache/cayenne/modeler/util/MultiColumnBrowser; (I)V
StackMapTable ? addTreeSelectionListener ,(Ljavax/swing/event/TreeSelectionListener;)V listener )Ljavax/swing/event/TreeSelectionListener; removeTreeSelectionListener fireTreeSelectionEvent ([Ljava/lang/Object;)V e &Ljavax/swing/event/TreeSelectionEvent; ?O getSelectionPath ()Ljavax/swing/tree/TreePath; setSelectionPath (Ljavax/swing/tree/TreePath;)V i path Ljavax/swing/tree/TreePath;P selectRow 1(Ljava/lang/Object;ILjavax/swing/tree/TreePath;)V row Ljava/lang/Object; index
getMinColumns ()I
setMinColumns getPreferredColumnSize ()Ljava/awt/Dimension; setPreferredColumnSize (Ljava/awt/Dimension;)V setDefaultRenderer getRenderer ()Ljavax/swing/ListCellRenderer; setRenderer !(Ljavax/swing/ListCellRenderer;)V column Ljavax/swing/JList; setModel (Ljavax/swing/tree/TreeModel;)V getModel ()Ljavax/swing/tree/TreeModel; getColumnsCount initView adjustViewColumns delta appendColumn C()Lorg/apache/cayenne/modeler/util/MultiColumnBrowser$BrowserPanel; panel ALorg/apache/cayenne/modeler/util/MultiColumnBrowser$BrowserPanel; scroller Ljavax/swing/JScrollPane;(
installColumn D(Lorg/apache/cayenne/modeler/util/MultiColumnBrowser$BrowserPanel;)V removeLastColumn clearSelection uninstallColumn refreshPreferredSize w h scrollToColumn viewport Ljavax/swing/JViewport; x D y rectangle Ljava/awt/Rectangle;7 updateFromModel (Ljava/lang/Object;I)V selectedNode
panelIndex (Ljava/lang/Object;IZ)V lastPanel load lastIndex rebuildPath ;([Ljava/lang/Object;Ljava/lang/Object;I)[Ljava/lang/Object; node newPath
SourceFile MultiColumnBrowser.java 2org/apache/cayenne/modeler/util/MultiColumnBrowser ? ? ? ? "java/lang/IllegalArgumentException java/lang/StringBuilder !Expected 3 or more columns, got: QRQSTU ?V u r Borg/apache/cayenne/modeler/util/MultiColumnBrowser$PanelController ?W ? ? java/util/ArrayList ? ? ?XYZ[Z\Z ? ? $javax/swing/event/TreeSelectionEvent javax/swing/tree/TreePath ? ? ?]^_O`abc 'javax/swing/event/TreeSelectionListenerde z {f ?gh ? ? ~ ih ?org/apache/cayenne/modeler/util/MultiColumnBrowser$BrowserPaneljckl ? ? | } ? ? v w Morg/apache/cayenne/modeler/util/MultiColumnBrowser$MultiColumnBrowserRenderer ? ?m ? javax/swing/JListn ? java/lang/NullPointerException Null tree model. x yopc ? ? java/awt/GridLayout ?qrs ? ? ? ?t ? ? ? javax/swing/JScrollPane ?uv ?[wxy\h ? ?\ ?zy ? ?{ r| r java/awt/Dimension ?}~ javax/swing/JViewport? ? ? ?? ? java/awt/Rectangle?? ? ? java/lang/Object??? ? ??? ? ??Z ? ? ? ???? icon-arrow-closed.png??? o p javax/swing/JPanel Borg/apache/cayenne/modeler/util/MultiColumnBrowser$ColumnListModel java/util/Iterator java/lang/Throwable append -(Ljava/lang/String;)Ljava/lang/StringBuilder; (I)Ljava/lang/StringBuilder; toString ()Ljava/lang/String; (Ljava/lang/String;)V 7(Lorg/apache/cayenne/modeler/util/MultiColumnBrowser;)V java/util/List contains (Ljava/lang/Object;)Z add remove g(Ljava/lang/Object;Ljavax/swing/tree/TreePath;ZLjavax/swing/tree/TreePath;Ljavax/swing/tree/TreePath;)V iterator ()Ljava/util/Iterator; hasNext ()Z next ()Ljava/lang/Object; valueChanged )(Ljavax/swing/event/TreeSelectionEvent;)V getPathCount getPathComponent (I)Ljava/lang/Object; get getSelectedValue setSelectedValue (Ljava/lang/Object;Z)V size setCellRenderer javax/swing/tree/TreeModel getRoot (IIII)V setLayout (Ljava/awt/LayoutManager;)V
revalidate (Ljava/awt/Component;II)V setPreferredSize *(Ljava/awt/Component;)Ljava/awt/Component; addListSelectionListener ,(Ljavax/swing/event/ListSelectionListener;)V removeListSelectionListener width height (II)V getParent ()Ljava/awt/Container; getWidth getHeight scrollRectToVisible (Ljava/awt/Rectangle;)V getSelectionModel "()Ljavax/swing/ListSelectionModel; javax/swing/ListSelectionModel setRootNode (Ljava/lang/Object;)V isLeaf java/lang/System arraycopy *(Ljava/lang/Object;ILjava/lang/Object;II)V +org/apache/cayenne/modeler/util/ModelerUtil buildIcon +(Ljava/lang/String;)Ljavax/swing/ImageIcon; ! h o p q r s t u r v w x y z { | } ~ ? ? ? ? ? ? ? ? ? ? ? ? 4 *? ? ?
X Y ? ? ? ? ? ? ? E*? ? ? Y? Y? ? ? ?
? ?*? *?
Y*? ? *? Y? ? *? ? ? " [ \ ] $ a ) b 5 c @ d D e ? E ? ? E u r ?
? $ ? ? ? ? b +? *? +? ? *? +? W? ? h i k ? ? ? ? ? ? ? ? ? D *? +? W? ?
n o ? ? ? ? ? ? ? ? ? F*? ? ?? Y*? Y+? ? M*? ? N-? ? -? ? :,? ??? ? u v y z : { B | E } ? * : ? ? F ? ? F z { * ? ? ? ? ? ?? ? ? ? N *? !? ? Y*? !? ? ? ? ? ? ? ? ? @ ? ? ? ? ? 1*? =+? "? *+? #+? $????*? ? N*? -?? ( ? &