Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.scout.rt.client/src/org/eclipse/scout/rt/client/ui/basic/cell/CellExtension.java')
-rw-r--r--org.eclipse.scout.rt.client/src/org/eclipse/scout/rt/client/ui/basic/cell/CellExtension.java266
1 files changed, 133 insertions, 133 deletions
diff --git a/org.eclipse.scout.rt.client/src/org/eclipse/scout/rt/client/ui/basic/cell/CellExtension.java b/org.eclipse.scout.rt.client/src/org/eclipse/scout/rt/client/ui/basic/cell/CellExtension.java
index 46205bd817..35124231e6 100644
--- a/org.eclipse.scout.rt.client/src/org/eclipse/scout/rt/client/ui/basic/cell/CellExtension.java
+++ b/org.eclipse.scout.rt.client/src/org/eclipse/scout/rt/client/ui/basic/cell/CellExtension.java
@@ -1,133 +1,133 @@
-/*******************************************************************************
- * Copyright (c) 2010 BSI Business Systems Integration AG.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * BSI Business Systems Integration AG - initial API and implementation
- ******************************************************************************/
-package org.eclipse.scout.rt.client.ui.basic.cell;
-
-import org.eclipse.scout.rt.shared.data.basic.FontSpec;
-
-/**
- * Rarely used attributes of a {@link Cell} are stored in this class. It references a probably shared instance of a
- * {@link CellStyle} class.
- * <p>
- * <b>Note</b>: Instances of this class are not expected to be shared between multiple {@link Cell}s.
- */
-public class CellExtension implements ICellSpecialization {
-
- private String m_tooltipText;
- private boolean m_enabled;
- private boolean m_editable;
- private CellStyle m_cellStyle;
-
- public CellExtension(ICellSpecialization specialization) {
- m_enabled = true;
- m_cellStyle = specialization.getCellStyle();
- }
-
- @Override
- public ICellSpecialization copy() {
- setCellStyle(getCellStyle().copy());
- return this;
- }
-
- @Override
- public ICellSpecialization reconcile(CellStyle cellStyle) {
- setCellStyle(cellStyle);
- return this;
- }
-
- @Override
- public String getTooltipText() {
- return m_tooltipText;
- }
-
- @Override
- public void setTooltipText(String tooltipText) {
- m_tooltipText = tooltipText;
- }
-
- @Override
- public boolean isEnabled() {
- return m_enabled;
- }
-
- @Override
- public void setEnabled(boolean enabled) {
- m_enabled = enabled;
- }
-
- @Override
- public boolean isEditable() {
- return m_editable;
- }
-
- @Override
- public void setEditable(boolean editable) {
- m_editable = editable;
- }
-
- @Override
- public CellStyle getCellStyle() {
- return m_cellStyle;
- }
-
- public void setCellStyle(CellStyle cellStyle) {
- m_cellStyle = cellStyle;
- }
-
- @Override
- public String getBackgroundColor() {
- return m_cellStyle.getBackgroundColor();
- }
-
- @Override
- public FontSpec getFont() {
- return m_cellStyle.getFont();
- }
-
- @Override
- public String getForegroundColor() {
- return m_cellStyle.getForegroundColor();
- }
-
- @Override
- public int getHorizontalAlignment() {
- return m_cellStyle.getHorizontalAlignment();
- }
-
- @Override
- public String getIconId() {
- return m_cellStyle.getIconId();
- }
-
- @Override
- public void setBackgroundColor(String backgroundColor) {
- m_cellStyle.setBackgroundColor(backgroundColor);
- }
-
- @Override
- public void setFont(FontSpec font) {
- m_cellStyle.setFont(font);
- }
-
- @Override
- public void setForegroundColor(String foregroundColor) {
- m_cellStyle.setForegroundColor(foregroundColor);
- }
-
- @Override
- public void setHorizontalAlignment(int horizontalAlignment) {
- m_cellStyle.setHorizontalAlignment(horizontalAlignment);
- }
-
- @Override
- public void setIconId(String iconId) {
- m_cellStyle.setIconId(iconId);
- }
-}
+/*******************************************************************************
+ * Copyright (c) 2010 BSI Business Systems Integration AG.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * BSI Business Systems Integration AG - initial API and implementation
+ ******************************************************************************/
+package org.eclipse.scout.rt.client.ui.basic.cell;
+
+import org.eclipse.scout.rt.shared.data.basic.FontSpec;
+
+/**
+ * Rarely used attributes of a {@link Cell} are stored in this class. It references a probably shared instance of a
+ * {@link CellStyle} class.
+ * <p>
+ * <b>Note</b>: Instances of this class are not expected to be shared between multiple {@link Cell}s.
+ */
+public class CellExtension implements ICellSpecialization {
+
+ private String m_tooltipText;
+ private boolean m_enabled;
+ private boolean m_editable;
+ private CellStyle m_cellStyle;
+
+ public CellExtension(ICellSpecialization specialization) {
+ m_enabled = true;
+ m_cellStyle = specialization.getCellStyle();
+ }
+
+ @Override
+ public ICellSpecialization copy() {
+ setCellStyle(getCellStyle().copy());
+ return this;
+ }
+
+ @Override
+ public ICellSpecialization reconcile(CellStyle cellStyle) {
+ setCellStyle(cellStyle);
+ return this;
+ }
+
+ @Override
+ public String getTooltipText() {
+ return m_tooltipText;
+ }
+
+ @Override
+ public void setTooltipText(String tooltipText) {
+ m_tooltipText = tooltipText;
+ }
+
+ @Override
+ public boolean isEnabled() {
+ return m_enabled;
+ }
+
+ @Override
+ public void setEnabled(boolean enabled) {
+ m_enabled = enabled;
+ }
+
+ @Override
+ public boolean isEditable() {
+ return m_editable;
+ }
+
+ @Override
+ public void setEditable(boolean editable) {
+ m_editable = editable;
+ }
+
+ @Override
+ public CellStyle getCellStyle() {
+ return m_cellStyle;
+ }
+
+ public void setCellStyle(CellStyle cellStyle) {
+ m_cellStyle = cellStyle;
+ }
+
+ @Override
+ public String getBackgroundColor() {
+ return m_cellStyle.getBackgroundColor();
+ }
+
+ @Override
+ public FontSpec getFont() {
+ return m_cellStyle.getFont();
+ }
+
+ @Override
+ public String getForegroundColor() {
+ return m_cellStyle.getForegroundColor();
+ }
+
+ @Override
+ public int getHorizontalAlignment() {
+ return m_cellStyle.getHorizontalAlignment();
+ }
+
+ @Override
+ public String getIconId() {
+ return m_cellStyle.getIconId();
+ }
+
+ @Override
+ public void setBackgroundColor(String backgroundColor) {
+ m_cellStyle.setBackgroundColor(backgroundColor);
+ }
+
+ @Override
+ public void setFont(FontSpec font) {
+ m_cellStyle.setFont(font);
+ }
+
+ @Override
+ public void setForegroundColor(String foregroundColor) {
+ m_cellStyle.setForegroundColor(foregroundColor);
+ }
+
+ @Override
+ public void setHorizontalAlignment(int horizontalAlignment) {
+ m_cellStyle.setHorizontalAlignment(horizontalAlignment);
+ }
+
+ @Override
+ public void setIconId(String iconId) {
+ m_cellStyle.setIconId(iconId);
+ }
+}

Back to the top