org.apache.cayenne.modeler.util.MultiColumnBrowser.class Maven / Gradle / Ivy
???? 1? ?
?
i ? ? ?
? ?
?
?
?
? ? ?
? ? ?
?
? ? ?
? ? ? ? ? ? ? ? ? ?
?
? ? ? ? ? ?
?
(
(
/ ?
?
3
5 ?
?
<
( ?
!"
D#
D$
%
(&
( ?'
(
)
(*
+ Q, Q-.
Q/
$
01
2
3
45
Y
U6
78
(9:;
(<
=>
?
@
ABC
DE FG MultiColumnBrowserRenderer InnerClasses PanelController BrowserPanelH 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 addTreeSelectionListener ,(Ljavax/swing/event/TreeSelectionListener;)V listener )Ljavax/swing/event/TreeSelectionListener; removeTreeSelectionListener fireTreeSelectionEvent ([Ljava/lang/Object;)V e &Ljavax/swing/event/TreeSelectionEvent; getSelectionPath ()Ljavax/swing/tree/TreePath; setSelectionPath (Ljavax/swing/tree/TreePath;)V i path Ljavax/swing/tree/TreePath; 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: IJIKLM ?N v s Borg/apache/cayenne/modeler/util/MultiColumnBrowser$PanelController ?O ? ? java/util/ArrayListPQR ? ? ? ?STUVUWU ? ? $javax/swing/event/TreeSelectionEvent javax/swing/tree/TreePath ? ? ?XYZ[\]^_ 'javax/swing/event/TreeSelectionListener`a { |b ?cd ? ? ?ed ?org/apache/cayenne/modeler/util/MultiColumnBrowser$BrowserPanelf_gh ? ? } ~ ? ? w x Morg/apache/cayenne/modeler/util/MultiColumnBrowser$MultiColumnBrowserRenderer ? ?i ? javax/swing/JListj ? java/lang/NullPointerException Null tree model. y zkl_ ? ? java/awt/GridLayout ?mno ? ? ? ?p ? ? ? javax/swing/JScrollPane ?qr ?VstuWd ? ?W ?vu ? ?w sx s java/awt/Dimension ?yz{ javax/swing/JViewport| ? ? ?} ? java/awt/Rectangle~ ? ? java/lang/Object??? ? ??? ? ??U ? ? ? ???? scroll_right.gif??? p q javax/swing/JPanel Borg/apache/cayenne/modeler/util/MultiColumnBrowser$ColumnListModel 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/Collections synchronizedList "(Ljava/util/List;)Ljava/util/List; 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; java/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; ! i p q r s t u v s w x y z { | } ~ ? ? ? ? ? ? ? ? ? ? ? ? ? ? 4 *? ? ?
^ _ ? ? ? ? ? ? ? H*? ? ? Y? Y? ? ? ?
? ?*? *?
Y*? ? *? Y? ? ? *? ? ? " a b c $ j ) k 5 l C m G n ? H ? ? H v s ? ? ? ? .*? YM?+? *? +? ? *? +? W,ç N,?-?? % ( ( + ( ? q r s # u - v ? . ? ? . ? ? ? ? ? m *? YM?*? +? W,ç N,?-?? ? y z { | ? ? ? ? ? ? ? ? ? \*? ? ?? Y*? Y+? ? M*? YN?*? ? :? ? ? ? :,? ! ???-ç
:-??? # Q T T X T ? " ? ? ? ? # ? D ? O ? [ ? ? * D ? ? \ ? ? \ { | @ ? ? ? ? ? 6 ? Y*? "? ? ? ? ? ? ? ? ? ? ? 1*? =+? #? *+? $+? %????*? ? N*? -?? ( ? " ? ? ? ? ? % ? ( ? 0 ? ? ? s 1 ? ? 1 ? ? ? ? ? ? :? 0*? &d? ' ? (? )+? *? &d? ' ? (+? *? *+d? +? ? ? ? 1 ? 9 ? ? * : ? ? : ? ? : ? s : ? ? ? ? ? / *? ? ? ? ? ? ? ? ? ? > *? ? ?
? ? ? ? ? v s ? ? ? / *? ,? ? ? ? ? ? ? ? ? F
*+? ,*? -? ? ? ? ? ?
? ?
} ~ ? ? ? I *? .? /? *? /Y*? 0? 1? ? ?
? ? ? ? ? ? ? ? / *? .? ? ? ? ? ? ! ? ? ? ? F*? .+? @*+? .*? &? 4*? &? 2 ? (*? &? M,? ? ,? ? 3N-+? 4??? ? ? ?
? ? = ? E ? ? = ? ? F ? ? F w x ! ? ? ? o '+?
? 5Y6? 7?*? 8+? *+? 8*+? 9 ? +? ? ? ? ? ? ? &