[jboss-svn-commits] JBL Code SVN: r5598 - in labs/jbossrules/trunk/drools-brms/src/org/drools/brms: client client/rulelist client/rulenav public
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Tue Aug 8 10:14:01 EDT 2006
Author: michael.neale at jboss.com
Date: 2006-08-08 10:13:53 -0400 (Tue, 08 Aug 2006)
New Revision: 5598
Added:
labs/jbossrules/trunk/drools-brms/src/org/drools/brms/client/rulelist/RuleListData.java
labs/jbossrules/trunk/drools-brms/src/org/drools/brms/client/rulelist/RuleListItem.java
labs/jbossrules/trunk/drools-brms/src/org/drools/brms/client/rulelist/RuleListView.java
Removed:
labs/jbossrules/trunk/drools-brms/src/org/drools/brms/client/rulelist/RuleItem.java
labs/jbossrules/trunk/drools-brms/src/org/drools/brms/client/rulelist/RuleItems.java
labs/jbossrules/trunk/drools-brms/src/org/drools/brms/client/rulelist/RuleList.java
Modified:
labs/jbossrules/trunk/drools-brms/src/org/drools/brms/client/Rules.java
labs/jbossrules/trunk/drools-brms/src/org/drools/brms/client/rulenav/RulesNavigatorTree.java
labs/jbossrules/trunk/drools-brms/src/org/drools/brms/public/JBRMS.css
Log:
more changes
Modified: labs/jbossrules/trunk/drools-brms/src/org/drools/brms/client/Rules.java
===================================================================
--- labs/jbossrules/trunk/drools-brms/src/org/drools/brms/client/Rules.java 2006-08-08 14:13:31 UTC (rev 5597)
+++ labs/jbossrules/trunk/drools-brms/src/org/drools/brms/client/Rules.java 2006-08-08 14:13:53 UTC (rev 5598)
@@ -1,6 +1,6 @@
package org.drools.brms.client;
-import org.drools.brms.client.rulelist.RuleList;
+import org.drools.brms.client.rulelist.RuleListView;
import org.drools.brms.client.rulenav.RulesNavigatorTree;
import com.google.gwt.user.client.ui.HorizontalPanel;
@@ -35,7 +35,7 @@
panel.add(nav.getTree());
- RuleList list = new RuleList(tab);
+ RuleListView list = new RuleListView(tab);
panel.add(list);
Deleted: labs/jbossrules/trunk/drools-brms/src/org/drools/brms/client/rulelist/RuleItem.java
===================================================================
--- labs/jbossrules/trunk/drools-brms/src/org/drools/brms/client/rulelist/RuleItem.java 2006-08-08 14:13:31 UTC (rev 5597)
+++ labs/jbossrules/trunk/drools-brms/src/org/drools/brms/client/rulelist/RuleItem.java 2006-08-08 14:13:53 UTC (rev 5598)
@@ -1,49 +0,0 @@
-/*
- * Copyright 2006 Google Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- */
-package org.drools.brms.client.rulelist;
-
-/**
- * A simple structure containing the basic components of an email.
- */
-public final class RuleItem {
-
- public RuleItem(String ruleName, String status, String changedBy) {
- this.name = ruleName;
- this.status = status;
- this.changedBy = changedBy;
- }
-
- /**
- * The sender's name.
- */
- public String name;
-
- /**
- * The sender's email.
- */
- public String status;
-
- /**
- * The email subject line.
- */
- public String changedBy;
-
-
- /**
- * Read flag.
- */
- public boolean read;
-}
Deleted: labs/jbossrules/trunk/drools-brms/src/org/drools/brms/client/rulelist/RuleItems.java
===================================================================
--- labs/jbossrules/trunk/drools-brms/src/org/drools/brms/client/rulelist/RuleItems.java 2006-08-08 14:13:31 UTC (rev 5597)
+++ labs/jbossrules/trunk/drools-brms/src/org/drools/brms/client/rulelist/RuleItems.java 2006-08-08 14:13:53 UTC (rev 5598)
@@ -1,78 +0,0 @@
-/*
- * Copyright 2006 Google Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- */
-package org.drools.brms.client.rulelist;
-
-import java.util.Vector;
-
-/**
- * A simple client-side generator of fake email messages.
- */
-public class RuleItems {
-
- private static final String[] ruleNames = new String[]{
- "MyCommunity 100%", "MyCommunity 97%", "December Promotion", "Flex Alt 97%"};
-
-
- private static final int NUM_ITEMS = ruleNames.length;
-
-
- private static final String[] statuses = new String[]{
- "draft", "production", "production","pending"
- };
-
- private static final String[] changedBy = new String[]{
- "mproctor -[Sun, 23 Apr 2006 13:10:03 +0000]",
- "mneale -[Sun, 23 Apr 2006 13:10:03 +0000]",
- "bmcwhirter -[Sun, 23 Apr 2006 13:10:03 +0000]", "mproctor -[Sun, 23 Apr 2006 13:10:03 +0000]"
- };
-
- private static int senderIdx = 0, emailIdx = 0, subjectIdx = 0,fragmentIdx = 0;
-
- private static Vector items = new Vector();
-
- static {
- for (int i = 0; i < NUM_ITEMS; ++i)
- items.add(createFakeItem());
- }
-
- public static int getMailItemCount() {
- return items.size();
- }
-
- public static RuleItem getMailItem(int index) {
- if (index >= items.size())
- return null;
- return (RuleItem) items.get(index);
- }
-
- private static RuleItem createFakeItem() {
- String sender = ruleNames[senderIdx++];
- if (senderIdx == ruleNames.length)
- senderIdx = 0;
-
- String email = statuses[emailIdx++];
- if (emailIdx == statuses.length)
- emailIdx = 0;
-
- String subject = changedBy[subjectIdx++];
- if (subjectIdx == changedBy.length)
- subjectIdx = 0;
-
- String body = "";
-
- return new RuleItem(sender, email, subject);
- }
-}
Deleted: labs/jbossrules/trunk/drools-brms/src/org/drools/brms/client/rulelist/RuleList.java
===================================================================
--- labs/jbossrules/trunk/drools-brms/src/org/drools/brms/client/rulelist/RuleList.java 2006-08-08 14:13:31 UTC (rev 5597)
+++ labs/jbossrules/trunk/drools-brms/src/org/drools/brms/client/rulelist/RuleList.java 2006-08-08 14:13:53 UTC (rev 5598)
@@ -1,203 +0,0 @@
-package org.drools.brms.client.rulelist;
-
-
-import com.google.gwt.user.client.ui.ClickListener;
-import com.google.gwt.user.client.ui.Composite;
-import com.google.gwt.user.client.ui.FlexTable;
-import com.google.gwt.user.client.ui.HTML;
-import com.google.gwt.user.client.ui.HorizontalPanel;
-import com.google.gwt.user.client.ui.SourcesTableEvents;
-import com.google.gwt.user.client.ui.TabPanel;
-import com.google.gwt.user.client.ui.TableListener;
-import com.google.gwt.user.client.ui.Widget;
-
-/**
- * A composite that displays a list of emails that can be selected.
- */
-public class RuleList extends Composite implements TableListener, ClickListener {
-
- private static final int EDITOR_TAB = 1;
-
-private static final int VISIBLE_EMAIL_COUNT = 10;
-
- private HTML countLabel = new HTML();
- private HTML prevButton = new HTML("<a href='javascript:;'>< prev</a>",
- true);
- private HTML nextButton = new HTML("<a href='javascript:;'>next ></a>",
- true);
-
- private HTML editButton = new HTML("<a href='javascript:;'>edit</a>",
- true);
-
- private int startIndex, selectedRow = -1;
- private FlexTable table = new FlexTable();
- private HorizontalPanel navBar = new HorizontalPanel();
- private TabPanel tabPanel;
-
-
- public RuleList(TabPanel tab) {
-
- tabPanel = tab;
-
- // Setup the table.
- table.setCellSpacing(0);
- table.setCellPadding(0);
- table.setWidth("100%");
-
- // Hook up events.
- table.addTableListener(this);
- prevButton.addClickListener(this);
- nextButton.addClickListener(this);
- editButton.addClickListener(this);
-
- // Create the 'navigation' bar at the upper-right.
- HorizontalPanel innerNavBar = new HorizontalPanel();
- innerNavBar.setStyleName("rule-ListNavBar");
- innerNavBar.setSpacing(8);
- innerNavBar.add(prevButton);
- innerNavBar.add(countLabel);
- innerNavBar.add(nextButton);
- innerNavBar.add(editButton);
-
- navBar.setHorizontalAlignment(HorizontalPanel.ALIGN_RIGHT);
- navBar.add(innerNavBar);
- navBar.setWidth("100%");
-
- setWidget(table);
- setStyleName("rule-List");
-
- initTable();
- update();
- }
-
- public void onCellClicked(SourcesTableEvents sender, int row, int cell) {
- // Select the row that was clicked (-1 to account for header row).
- if (row > 0)
- selectRow(row - 1);
- }
-
- public void onClick(Widget sender) {
- if (sender == nextButton) {
- // Move forward a page.
- startIndex += VISIBLE_EMAIL_COUNT;
- if (startIndex >= RuleItems.getMailItemCount())
- startIndex -= VISIBLE_EMAIL_COUNT;
- else {
- styleRow(selectedRow, false);
- selectedRow = -1;
- update();
- }
- } else if (sender == prevButton) {
- // Move back a page.
- startIndex -= VISIBLE_EMAIL_COUNT;
- if (startIndex < 0)
- startIndex = 0;
- else {
- styleRow(selectedRow, false);
- selectedRow = -1;
- update();
- }
- } else if (sender == editButton) {
- System.out.println("selected row: " + selectedRow);
- changeTabToEdit();
- }
- }
-
- private void changeTabToEdit() {
- tabPanel.selectTab(EDITOR_TAB);
-
- }
-
-/**
- * Initializes the table so that it contains enough rows for a full page of
- * emails. Also creates the images that will be used as 'read' flags.
- */
- private void initTable() {
- // Create the header row.
- table.setText(0, 0, "name");
- table.setText(0, 1, "status");
- table.setText(0, 2, "last updated by");
- table.setWidget(0, 3, navBar);
- table.getRowFormatter().setStyleName(0, "rule-ListHeader");
-
- // Initialize the rest of the rows.
- for (int i = 0; i < VISIBLE_EMAIL_COUNT; ++i) {
- table.setText(i + 1, 0, "");
- table.setText(i + 1, 1, "");
- table.setText(i + 1, 2, "");
- table.getCellFormatter().setWordWrap(i + 1, 0, false);
- table.getCellFormatter().setWordWrap(i + 1, 1, false);
- table.getCellFormatter().setWordWrap(i + 1, 2, false);
- table.getFlexCellFormatter().setColSpan(i + 1, 2, 2);
- }
- }
-
- /**
- * Selects the given row (relative to the current page).
- *
- * @param row the row to be selected
- */
- private void selectRow(int row) {
- // When a row (other than the first one, which is used as a header) is
- // selected, display its associated MailItem.
- RuleItem item = RuleItems.getMailItem(startIndex + row);
- if (item == null)
- return;
-
- styleRow(selectedRow, false);
- styleRow(row, true);
-
- item.read = true;
- selectedRow = row;
-
- }
-
- private void styleRow(int row, boolean selected) {
- if (row != -1) {
- if (selected)
- table.getRowFormatter().addStyleName(row + 1, "rule-SelectedRow");
- else
- table.getRowFormatter().removeStyleName(row + 1, "rule-SelectedRow");
- }
- }
-
- private void update() {
- // Update the older/newer buttons & label.
- int count = RuleItems.getMailItemCount();
- int max = startIndex + VISIBLE_EMAIL_COUNT;
- if (max > count)
- max = count;
-
- prevButton.setVisible(startIndex != 0);
- nextButton.setVisible(startIndex + VISIBLE_EMAIL_COUNT < count);
- countLabel.setText("" + (startIndex + 1) + " - " + max + " of " + count);
-
- // Show the selected emails.
- int i = 0;
- for (; i < VISIBLE_EMAIL_COUNT; ++i) {
- // Don't read past the end.
- if (startIndex + i >= RuleItems.getMailItemCount())
- break;
-
- RuleItem item = RuleItems.getMailItem(startIndex + i);
-
- // Add a new row to the table, then set each of its columns to the
- // email's sender and subject values.
- table.setText(i + 1, 0, item.name);
- table.setText(i + 1, 1, item.status);
- table.setText(i + 1, 2, item.changedBy);
- }
-
- // Clear any remaining slots.
- for (; i < VISIBLE_EMAIL_COUNT; ++i) {
- table.setHTML(i + 1, 0, " ");
- table.setHTML(i + 1, 1, " ");
- table.setHTML(i + 1, 2, " ");
- }
-
- // Select the first row if none is selected.
- if (selectedRow == -1)
- selectRow(0);
- }
-}
-
Added: labs/jbossrules/trunk/drools-brms/src/org/drools/brms/client/rulelist/RuleListData.java
===================================================================
--- labs/jbossrules/trunk/drools-brms/src/org/drools/brms/client/rulelist/RuleListData.java 2006-08-08 14:13:31 UTC (rev 5597)
+++ labs/jbossrules/trunk/drools-brms/src/org/drools/brms/client/rulelist/RuleListData.java 2006-08-08 14:13:53 UTC (rev 5598)
@@ -0,0 +1,58 @@
+/*
+ * Copyright 2006 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package org.drools.brms.client.rulelist;
+
+
+
+/**
+ * A simple client-side generator of fake email messages.
+ */
+public class RuleListData {
+
+ private RuleListItem[] items;
+
+
+ public RuleListData() {
+
+ items = new RuleListItem[42];
+
+ items[0] = new RuleListItem("MyCommunity 97%", "production", "mproctor");
+ items[1] = new RuleListItem("MyCommunity 100%", "production", "mproctor");
+ items[2] = new RuleListItem("Autum deals", "draft", "mneale");
+ items[3] = new RuleListItem("Alan parsons", "draft", "bmchirter");
+
+
+ for (int i = 4; i < items.length; i++) {
+ items[i] = new RuleListItem("Dummy rule", "draft", "anon");
+ }
+
+ }
+
+
+ public int getMailItemCount() {
+ return items.length;
+ }
+
+ public RuleListItem getMailItem(int index) {
+ if (index >= items.length)
+ return null;
+ return items[index];
+ }
+
+
+
+
+}
Added: labs/jbossrules/trunk/drools-brms/src/org/drools/brms/client/rulelist/RuleListItem.java
===================================================================
--- labs/jbossrules/trunk/drools-brms/src/org/drools/brms/client/rulelist/RuleListItem.java 2006-08-08 14:13:31 UTC (rev 5597)
+++ labs/jbossrules/trunk/drools-brms/src/org/drools/brms/client/rulelist/RuleListItem.java 2006-08-08 14:13:53 UTC (rev 5598)
@@ -0,0 +1,35 @@
+/*
+ * Copyright 2006 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may not
+ * use this file except in compliance with the License. You may obtain a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
+ */
+package org.drools.brms.client.rulelist;
+
+/**
+ * A simple structure containing the an item in a list for a rule asset.
+ */
+public final class RuleListItem {
+
+ public RuleListItem(String ruleName, String status, String changedBy) {
+ this.name = ruleName;
+ this.status = status;
+ this.changedBy = changedBy;
+ this.version = "1";
+ }
+
+ public String name;
+ public String status;
+ public String changedBy;
+ public String version;
+
+}
Copied: labs/jbossrules/trunk/drools-brms/src/org/drools/brms/client/rulelist/RuleListView.java (from rev 5566, labs/jbossrules/trunk/drools-brms/src/org/drools/brms/client/rulelist/RuleList.java)
===================================================================
--- labs/jbossrules/trunk/drools-brms/src/org/drools/brms/client/rulelist/RuleList.java 2006-08-07 19:08:57 UTC (rev 5566)
+++ labs/jbossrules/trunk/drools-brms/src/org/drools/brms/client/rulelist/RuleListView.java 2006-08-08 14:13:53 UTC (rev 5598)
@@ -0,0 +1,200 @@
+package org.drools.brms.client.rulelist;
+
+
+import com.google.gwt.user.client.ui.ClickListener;
+import com.google.gwt.user.client.ui.Composite;
+import com.google.gwt.user.client.ui.FlexTable;
+import com.google.gwt.user.client.ui.HTML;
+import com.google.gwt.user.client.ui.HorizontalPanel;
+import com.google.gwt.user.client.ui.SourcesTableEvents;
+import com.google.gwt.user.client.ui.TabPanel;
+import com.google.gwt.user.client.ui.TableListener;
+import com.google.gwt.user.client.ui.Widget;
+
+/**
+ * A composite that displays a list of emails that can be selected.
+ */
+public class RuleListView extends Composite implements TableListener, ClickListener {
+
+ private static final int EDITOR_TAB = 1;
+ private static final int VISIBLE_ITEM_COUNT = 10;
+
+ private HTML countLabel = new HTML();
+ private HTML prevButton = new HTML("<a href='javascript:;'>< prev</a>",true);
+ private HTML nextButton = new HTML("<a href='javascript:;'>next ></a>",true);
+ private HTML editButton = new HTML("<a href='javascript:;'>edit</a>",true);
+
+ private int startIndex, selectedRow = -1;
+ private FlexTable table = new FlexTable();
+ private HorizontalPanel navBar = new HorizontalPanel();
+ private TabPanel tabPanel;
+ private RuleListData data = new RuleListData();
+
+ public RuleListView(TabPanel tab) {
+
+ tabPanel = tab;
+
+ // Setup the table.
+ table.setCellSpacing(0);
+ table.setCellPadding(0);
+ table.setWidth("100%");
+
+ // Hook up events.
+ table.addTableListener(this);
+ prevButton.addClickListener(this);
+ nextButton.addClickListener(this);
+ editButton.addClickListener(this);
+
+ // Create the 'navigation' bar at the upper-right.
+ HorizontalPanel innerNavBar = new HorizontalPanel();
+ innerNavBar.setStyleName("rule-ListNavBar");
+ innerNavBar.setSpacing(8);
+ innerNavBar.add(prevButton);
+ innerNavBar.add(countLabel);
+ innerNavBar.add(nextButton);
+ innerNavBar.add(editButton);
+
+ navBar.setHorizontalAlignment(HorizontalPanel.ALIGN_RIGHT);
+ navBar.add(innerNavBar);
+ navBar.setWidth("100%");
+
+ setWidget(table);
+ setStyleName("rule-List");
+
+ initTable();
+ update();
+ }
+
+ public void onCellClicked(SourcesTableEvents sender, int row, int cell) {
+ // Select the row that was clicked (-1 to account for header row).
+ if (row > 0)
+ selectRow(row - 1);
+ }
+
+ public void onClick(Widget sender) {
+ if (sender == nextButton) {
+ // Move forward a page.
+ startIndex += VISIBLE_ITEM_COUNT;
+ if (startIndex >= data.getMailItemCount())
+ startIndex -= VISIBLE_ITEM_COUNT;
+ else {
+ styleRow(selectedRow, false);
+ selectedRow = -1;
+ update();
+ }
+ } else if (sender == prevButton) {
+ // Move back a page.
+ startIndex -= VISIBLE_ITEM_COUNT;
+ if (startIndex < 0)
+ startIndex = 0;
+ else {
+ styleRow(selectedRow, false);
+ selectedRow = -1;
+ update();
+ }
+ } else if (sender == editButton) {
+ changeTabToEdit();
+ }
+ }
+
+ private void changeTabToEdit() {
+ tabPanel.selectTab(EDITOR_TAB);
+ }
+
+ /**
+ * Initializes the table so that it contains enough rows for a full page of
+ * emails. Also creates the images that will be used as 'read' flags.
+ */
+ private void initTable() {
+ // Create the header row.
+ table.setText(0, 0, "name");
+ table.setText(0, 1, "status");
+ table.setText(0, 2, "last updated by");
+ table.setText(0, 3, "version");
+ table.setWidget(0, 4, navBar); //TODO: maybe put this in a seperate bar not the header
+ table.getRowFormatter().setStyleName(0, "rule-ListHeader");
+
+ // Initialize the rest of the rows.
+ for (int i = 0; i < VISIBLE_ITEM_COUNT; ++i) {
+ table.setText(i + 1, 0, "");
+ table.setText(i + 1, 1, "");
+ table.setText(i + 1, 2, "");
+ table.setText(i + 1, 3, "");
+
+ table.getCellFormatter().setWordWrap(i + 1, 0, false);
+ table.getCellFormatter().setWordWrap(i + 1, 1, false);
+ table.getCellFormatter().setWordWrap(i + 1, 2, false);
+ table.getCellFormatter().setWordWrap(i + 1, 3, false);
+
+ //table.getFlexCellFormatter().setColSpan(i + 1, 2, 2);
+ }
+ }
+
+ /**
+ * Selects the given row (relative to the current page).
+ *
+ * @param row the row to be selected
+ */
+ private void selectRow(int row) {
+
+ //change the style flags
+ styleRow(selectedRow, false);
+ styleRow(row, true);
+
+ //mark the selected row
+ selectedRow = row;
+
+ //may also show "preview" view here of rule.
+ }
+
+ private void styleRow(int row, boolean selected) {
+ if (row != -1) {
+ if (selected)
+ table.getRowFormatter().addStyleName(row + 1, "rule-SelectedRow");
+ else
+ table.getRowFormatter().removeStyleName(row + 1, "rule-SelectedRow");
+ }
+ }
+
+ private void update() {
+ // Update the older/newer buttons & label.
+ int count = data.getMailItemCount();
+ int max = startIndex + VISIBLE_ITEM_COUNT;
+ if (max > count)
+ max = count;
+
+ prevButton.setVisible(startIndex != 0);
+ nextButton.setVisible(startIndex + VISIBLE_ITEM_COUNT < count);
+ countLabel.setText("" + (startIndex + 1) + " - " + max + " of " + count);
+
+ // Show the selected emails.
+ int i = 0;
+ for (; i < VISIBLE_ITEM_COUNT; ++i) {
+ // Don't read past the end.
+ if (startIndex + i >= data.getMailItemCount())
+ break;
+
+ RuleListItem item = data.getMailItem(startIndex + i);
+
+ // Add a new row to the table, then set each of its columns to the
+ // email's sender and subject values.
+ table.setText(i + 1, 0, item.name);
+ table.setText(i + 1, 1, item.status);
+ table.setText(i + 1, 2, item.changedBy);
+ table.setText(i + 1, 3, item.version);
+ }
+
+ // Clear any remaining slots.
+ for (; i < VISIBLE_ITEM_COUNT; ++i) {
+ table.setHTML(i + 1, 0, " ");
+ table.setHTML(i + 1, 1, " ");
+ table.setHTML(i + 1, 2, " ");
+ table.setHTML(i + 1, 3, " ");
+ }
+
+ // Select the first row if none is selected.
+ if (selectedRow == -1)
+ selectRow(0);
+ }
+}
+
Modified: labs/jbossrules/trunk/drools-brms/src/org/drools/brms/client/rulenav/RulesNavigatorTree.java
===================================================================
--- labs/jbossrules/trunk/drools-brms/src/org/drools/brms/client/rulenav/RulesNavigatorTree.java 2006-08-08 14:13:31 UTC (rev 5597)
+++ labs/jbossrules/trunk/drools-brms/src/org/drools/brms/client/rulenav/RulesNavigatorTree.java 2006-08-08 14:13:53 UTC (rev 5598)
@@ -85,7 +85,7 @@
public void setTreeSize(String width) {
fTree.setWidth(width);
- }
+ }
public Tree getTree() {
return fTree;
Modified: labs/jbossrules/trunk/drools-brms/src/org/drools/brms/public/JBRMS.css
===================================================================
--- labs/jbossrules/trunk/drools-brms/src/org/drools/brms/public/JBRMS.css 2006-08-08 14:13:31 UTC (rev 5597)
+++ labs/jbossrules/trunk/drools-brms/src/org/drools/brms/public/JBRMS.css 2006-08-08 14:13:53 UTC (rev 5598)
@@ -239,7 +239,7 @@
padding: 4px;
}
-.ks-RuleListHeader {
+.rule-ListHeader {
background-image: url(images/gray_gradient.gif);
background-repeat: repeat-x;
font-weight: bold;
More information about the jboss-svn-commits
mailing list