org.apache.cayenne.modeler.util.MultiColumnBrowser.class Maven / Gradle / Ivy
???? 4? ?
?
h ? ? ?
? ?
?
?
?
? ? ?
? ? ?
? ?
? ? ? ? ? ? ? ? ? ?
?
? ? ? ? ? ? ?
?
'
'
. ?
?
2
4 ?
?
;
' ?
!
C"
C#
$
'%
' ?&
'
(
')
* P+ P,-
P.
#
/0
1
2
34
X
T5
67
'89:
';
<=
>
?
@AB
CD EF MultiColumnBrowserRenderer InnerClasses PanelController BrowserPanelG 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;H getSelectionPath ()Ljavax/swing/tree/TreePath; setSelectionPath (Ljavax/swing/tree/TreePath;)V i path Ljavax/swing/tree/TreePath;I 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; 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: JKJLMN ?O u r Borg/apache/cayenne/modeler/util/MultiColumnBrowser$PanelController ?P ? ? java/util/ArrayList ? ? ?QRSTSUS ? ? $javax/swing/event/TreeSelectionEvent javax/swing/tree/TreePath ? ? ?VWXYZ[\ 'javax/swing/event/TreeSelectionListener]^ z {_ ?`a ? ? ~ ba ?org/apache/cayenne/modeler/util/MultiColumnBrowser$BrowserPanelc\de ? ? | } ? ? v w Morg/apache/cayenne/modeler/util/MultiColumnBrowser$MultiColumnBrowserRenderer ? ?f ? javax/swing/JListg ? java/lang/NullPointerException Null tree model. x yhi\ ? ? java/awt/GridLayout ?jkl ? ? ? ?m ? ? ? javax/swing/JScrollPane ?no ?TpqrUa ? ?U ?sr ? ?t ru r java/awt/Dimension ?vwx javax/swing/JViewporty ? ? ?z ? java/awt/Rectangle{| ? ? java/lang/Object}~ ? ??? ? ??S ? ? ? ???? 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*? -?? ( ? &