ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject [13/15] incubator-ignite git commit: # IGNITE-32 Minor change of GUI: message box now will show scrollbar for long text.
Date Wed, 11 Feb 2015 10:58:42 GMT
# IGNITE-32 Minor change of GUI: message box now will show scrollbar for long text.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/5da06080
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/5da06080
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/5da06080

Branch: refs/heads/ignite-sql-tests
Commit: 5da06080d59dccc66c62bc23e2dc83f103bcf018
Parents: fa51a9c
Author: AKuznetsov <akuznetsov@gridgain.com>
Authored: Wed Feb 11 17:44:09 2015 +0700
Committer: AKuznetsov <akuznetsov@gridgain.com>
Committed: Wed Feb 11 17:44:09 2015 +0700

----------------------------------------------------------------------
 modules/schema-load/src/main/java/media/style.css            | 5 +++++
 .../main/java/org/apache/ignite/schema/ui/MessageBox.java    | 8 +++++++-
 .../main/java/org/apache/ignite/schema/ui/SchemaLoadApp.java | 2 +-
 3 files changed, 13 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/5da06080/modules/schema-load/src/main/java/media/style.css
----------------------------------------------------------------------
diff --git a/modules/schema-load/src/main/java/media/style.css b/modules/schema-load/src/main/java/media/style.css
index 3cac511..94ba240 100644
--- a/modules/schema-load/src/main/java/media/style.css
+++ b/modules/schema-load/src/main/java/media/style.css
@@ -42,6 +42,11 @@
     -fx-font-size : 14pt;
 }
 
+.text-area {
+    -fx-font-size: 14;
+    -fx-background-color: transparent, transparent, transparent;
+}
+
 .text-field {
     -fx-font-size: 14;
     -fx-background-color: -fx-text-box-border, -fx-control-inner-background, -fx-control-inner-background;

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/5da06080/modules/schema-load/src/main/java/org/apache/ignite/schema/ui/MessageBox.java
----------------------------------------------------------------------
diff --git a/modules/schema-load/src/main/java/org/apache/ignite/schema/ui/MessageBox.java
b/modules/schema-load/src/main/java/org/apache/ignite/schema/ui/MessageBox.java
index d459c18..07cbf05 100644
--- a/modules/schema-load/src/main/java/org/apache/ignite/schema/ui/MessageBox.java
+++ b/modules/schema-load/src/main/java/org/apache/ignite/schema/ui/MessageBox.java
@@ -109,7 +109,13 @@ public class MessageBox extends ModalDialog {
         contentPnl.addColumn(100, 100, Double.MAX_VALUE, Priority.ALWAYS);
 
         contentPnl.add(hBox(0, true, imageView(iconFile, 48)));
-        contentPnl.add(text(msg, 350));
+
+        TextArea ta = new TextArea(msg);
+        ta.setEditable(false);
+        ta.setWrapText(true);
+        ta.setFocusTraversable(false);
+
+        contentPnl.add(ta);
 
         final CheckBox rememberChoiceCh = checkBox("Remember choice", "", false);
 

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/5da06080/modules/schema-load/src/main/java/org/apache/ignite/schema/ui/SchemaLoadApp.java
----------------------------------------------------------------------
diff --git a/modules/schema-load/src/main/java/org/apache/ignite/schema/ui/SchemaLoadApp.java
b/modules/schema-load/src/main/java/org/apache/ignite/schema/ui/SchemaLoadApp.java
index f4f76e9..91ac24f 100644
--- a/modules/schema-load/src/main/java/org/apache/ignite/schema/ui/SchemaLoadApp.java
+++ b/modules/schema-load/src/main/java/org/apache/ignite/schema/ui/SchemaLoadApp.java
@@ -944,7 +944,7 @@ public class SchemaLoadApp extends Application {
                         }
                     }
                 }),
-            button("Reset Selected", "Revert changes for selected items to initial values",
new EventHandler<ActionEvent>() {
+            button("Reset Selected", "Revert changes for selected items to initial auto-generated
values", new EventHandler<ActionEvent>() {
                 @Override public void handle(ActionEvent evt) {
                     String sel = replaceCb.getSelectionModel().getSelectedItem();
 


Mime
View raw message