Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java @ 1333:1627a28c4504
Cosmetics, docs.
flys-client/trunk@2978 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Mon, 17 Oct 2011 09:41:40 +0000 |
parents | 974c6b3700de |
children | ceb989d64cd2 |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java Mon Oct 17 09:37:27 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/StyleEditorWindow.java Mon Oct 17 09:41:40 2011 +0000 @@ -45,25 +45,26 @@ /** The interface that provides i18n messages. */ protected FLYSConstants MSG = GWT.create(FLYSConstants.class); - /** The collection */ + /** The collection. */ protected Collection collection; - /** The parent collection view */ + /** The parent collection view. */ protected CollectionView view; - /** The attributes */ + /** The attributes. */ protected CollectionItemAttribute attributes; /** The selected facet. */ protected FacetRecord facet; - /** Main layout */ + /** Main layout. */ protected VLayout layout; /** The service used to set collection item attributes. */ protected CollectionItemAttributeServiceAsync itemAttributeService = GWT.create(CollectionItemAttributeService.class); + public StyleEditorWindow ( Collection collection, CollectionItemAttribute attributes, @@ -207,7 +208,8 @@ return df; } - protected String rgbToHtml(String rgb) { + + protected static String rgbToHtml(String rgb) { String[] parts = rgb.split(","); int values[] = new int[parts.length]; for (int i = 0; i < parts.length; i++) { @@ -229,7 +231,8 @@ return hex; } - protected String htmlToRgb(String html) { + + protected static String htmlToRgb(String html) { if (!html.startsWith("#")) { return "0, 0, 0"; } @@ -241,6 +244,7 @@ return r + ", " + g + ", " + b; } + protected void saveStyle () { GWT.log("StyleEditorWindow.saveStyle()"); Config config = Config.getInstance(); @@ -266,6 +270,7 @@ this.hide(); } + protected final void setNewValue(String name, String value) { Theme t = facet.getTheme(); Style s = attributes.getStyle(t.getFacet(), t.getIndex());