Update of /cvsroot/squirrel-sql/sql12/app/src/net/sourceforge/squirrel_sql/client/gui/db
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv9352/app/src/net/sourceforge/squirrel_sql/client/gui/db
Modified Files:
ISQLAliasExt.java SQLAlias.java SQLAliasBeanInfo.java
Added Files:
SQLAliasColorProperties.java
Log Message:
Feature request: 1656320 (Provide Background Color Configuration); initial check-in.
Index: SQLAliasBeanInfo.java
===================================================================
RCS file: /cvsroot/squirrel-sql/sql12/app/src/net/sourceforge/squirrel_sql/client/gui/db/SQLAliasBeanInfo.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** SQLAliasBeanInfo.java 27 Nov 2008 15:37:09 -0000 1.4
--- SQLAliasBeanInfo.java 28 Nov 2009 20:14:51 -0000 1.5
***************
*** 67,71 ****
"setConnectAtStartup"),
new PropertyDescriptor(IPropNames.SCHEMA_PROPERTIES, SQLAlias.class, "getSchemaProperties",
! "setSchemaProperties") };
return result;
}
--- 67,73 ----
"setConnectAtStartup"),
new PropertyDescriptor(IPropNames.SCHEMA_PROPERTIES, SQLAlias.class, "getSchemaProperties",
! "setSchemaProperties"),
! new PropertyDescriptor(IPropNames.COLOR_PROPERTIES, SQLAlias.class, "getColorProperties",
! "setColorProperties") };
return result;
}
Index: SQLAlias.java
===================================================================
RCS file: /cvsroot/squirrel-sql/sql12/app/src/net/sourceforge/squirrel_sql/client/gui/db/SQLAlias.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** SQLAlias.java 15 Jun 2008 15:27:52 -0000 1.7
--- SQLAlias.java 28 Nov 2009 20:14:51 -0000 1.8
***************
*** 96,99 ****
--- 96,101 ----
private SQLAliasSchemaProperties _schemaProperties = new SQLAliasSchemaProperties();
+ private SQLAliasColorProperties _colorProperties = new SQLAliasColorProperties();
+
/**
* Default ctor.
***************
*** 149,152 ****
--- 151,156 ----
(SQLAliasSchemaProperties) Utilities.cloneObject(rhs._schemaProperties,
getClass().getClassLoader());
+ _colorProperties =
+ (SQLAliasColorProperties) Utilities.cloneObject(rhs._colorProperties, getClass().getClassLoader());
}
***************
*** 483,486 ****
--- 487,493 ----
}
+ /**
+ * @see net.sourceforge.squirrel_sql.client.gui.db.ISQLAliasExt#setSchemaProperties(net.sourceforge.squirrel_sql.client.gui.db.SQLAliasSchemaProperties)
+ */
public void setSchemaProperties(SQLAliasSchemaProperties schemaProperties)
{
***************
*** 488,490 ****
--- 495,509 ----
}
+ @Override
+ public SQLAliasColorProperties getColorProperties()
+ {
+ return _colorProperties;
+ }
+
+ @Override
+ public void setColorProperties(SQLAliasColorProperties colorProperties)
+ {
+ _colorProperties = colorProperties;
+ }
+
}
--- NEW FILE: SQLAliasColorProperties.java ---
package net.sourceforge.squirrel_sql.client.gui.db;
/*
* Copyright (C) 2009 Rob Manning
* man...@us...
*
* Based on initial work from Colin Bell
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
import java.io.Serializable;
public class SQLAliasColorProperties implements Serializable
{
private static final long serialVersionUID = 1L;
private boolean overrideToolbarBackgroundColor = false;
private int toolbarBackgroundColorRgbValue = 0;
private boolean overrideObjectTreeBackgroundColor = false;
private int objectTreeBackgroundColorRgbValue = 0;
private boolean overrideStatusBarBackgroundColor = false;
private int statusBarBackgroundColorRgbValue = 0;
/**
* @return the overrideToolbarBackgroundColor
*/
public boolean isOverrideToolbarBackgroundColor()
{
return overrideToolbarBackgroundColor;
}
/**
* @param overrideToolbarBackgroundColor the overrideToolbarBackgroundColor to set
*/
public void setOverrideToolbarBackgroundColor(boolean overrideToolbarBackgroundColor)
{
this.overrideToolbarBackgroundColor = overrideToolbarBackgroundColor;
}
/**
* @return the toolbarBackgroundColor
*/
public int getToolbarBackgroundColorRgbValue()
{
return toolbarBackgroundColorRgbValue;
}
/**
* @param toolbarBackgroundColorRgbValue the toolbarBackgroundColor to set
*/
public void setToolbarBackgroundColorRgbValue(int toolbarBackgroundColorRgbValue)
{
this.toolbarBackgroundColorRgbValue = toolbarBackgroundColorRgbValue;
}
/**
* @return the overrideObjectTreeBackgroundColor
*/
public boolean isOverrideObjectTreeBackgroundColor()
{
return overrideObjectTreeBackgroundColor;
}
/**
* @param overrideObjectTreeBackgroundColor the overrideObjectTreeBackgroundColor to set
*/
public void setOverrideObjectTreeBackgroundColor(boolean overrideObjectTreeBackgroundColor)
{
this.overrideObjectTreeBackgroundColor = overrideObjectTreeBackgroundColor;
}
/**
* @return the objectTreeBackgroundColorRgbValue
*/
public int getObjectTreeBackgroundColorRgbValue()
{
return objectTreeBackgroundColorRgbValue;
}
/**
* @param objectTreeBackgroundColorRgbValue the objectTreeBackgroundColor to set
*/
public void setObjectTreeBackgroundColorRgbValue(int objectTreeBackgroundColorRgbValue)
{
this.objectTreeBackgroundColorRgbValue = objectTreeBackgroundColorRgbValue;
}
/**
* @return the overrideStatusBarBackgroundColor
*/
public boolean isOverrideStatusBarBackgroundColor()
{
return overrideStatusBarBackgroundColor;
}
/**
* @param overrideStatusBarBackgroundColor the overrideStatusBarBackgroundColor to set
*/
public void setOverrideStatusBarBackgroundColor(boolean overrideStatusBarBackgroundColor)
{
this.overrideStatusBarBackgroundColor = overrideStatusBarBackgroundColor;
}
/**
* @return the statusBarBackgroundColorRgbValue
*/
public int getStatusBarBackgroundColorRgbValue()
{
return statusBarBackgroundColorRgbValue;
}
/**
* @param statusBarBackgroundColorRgbValue the statusBarBackgroundColor to set
*/
public void setStatusBarBackgroundColorRgbValue(int statusBarBackgroundColorRgbValue)
{
this.statusBarBackgroundColorRgbValue = statusBarBackgroundColorRgbValue;
}
}
Index: ISQLAliasExt.java
===================================================================
RCS file: /cvsroot/squirrel-sql/sql12/app/src/net/sourceforge/squirrel_sql/client/gui/db/ISQLAliasExt.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ISQLAliasExt.java 12 Jul 2006 09:16:18 -0000 1.1
--- ISQLAliasExt.java 28 Nov 2009 20:14:51 -0000 1.2
***************
*** 7,9 ****
--- 7,12 ----
SQLAliasSchemaProperties getSchemaProperties();
void setSchemaProperties(SQLAliasSchemaProperties schemaProperties);
+
+ SQLAliasColorProperties getColorProperties();
+ void setColorProperties(SQLAliasColorProperties colorProperties);
}
|