Revision d4ace10a src/gr/grnet/pithos/web/client/PithosDisclosurePanel.java
b/src/gr/grnet/pithos/web/client/PithosDisclosurePanel.java | ||
---|---|---|
75 | 75 |
|
76 | 76 |
@Source("downArrow.png") |
77 | 77 |
ImageResource closed(); |
78 |
|
|
79 |
@Source("gr/grnet/pithos/resources/ajax-loader.gif") |
|
80 |
ImageResource ajaxLoader(); |
|
78 | 81 |
} |
79 | 82 |
|
80 | 83 |
DisclosurePanel panel; |
81 | 84 |
|
82 | 85 |
Resources resources; |
83 |
|
|
84 |
public PithosDisclosurePanel(final Resources _resources, final String title, boolean open) { |
|
86 |
|
|
87 |
final boolean ajaxLoader; |
|
88 |
|
|
89 |
public PithosDisclosurePanel(final Resources _resources, final String title, boolean open) { |
|
90 |
this(_resources, title, open, false); |
|
91 |
} |
|
92 |
|
|
93 |
public PithosDisclosurePanel(final Resources _resources, final String title, boolean open, boolean ajaxLoader) { |
|
94 |
this.ajaxLoader = ajaxLoader; |
|
95 |
|
|
85 | 96 |
resources = _resources; |
86 | 97 |
resources.pithosDisclosurePanelCss().ensureInjected(); |
87 | 98 |
panel = new DisclosurePanel(); |
... | ... | |
111 | 122 |
|
112 | 123 |
Image img = new Image(resources.icon()); |
113 | 124 |
header.add(img); |
125 |
if(ajaxLoader) { |
|
126 |
final Image alImg = new Image(resources.ajaxLoader()); |
|
127 |
header.add(alImg); |
|
128 |
} |
|
114 | 129 |
header.setCellVerticalAlignment(img, HasVerticalAlignment.ALIGN_MIDDLE); |
115 | 130 |
header.setCellWidth(img, "32px"); |
116 | 131 |
HTML titleHtml = new HTML(title); |
Also available in: Unified diff