97 lines
2.6 KiB
Java
97 lines
2.6 KiB
Java
/*
|
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
|
* (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.mozilla.org/MPL/>.
|
|
*
|
|
* Software distributed under the License is distributed on an "AS IS" basis, WITHOUT
|
|
* WARRANTY OF ANY KIND, either express or implied. See the License for the specific
|
|
* language governing rights and limitations under the License.
|
|
*
|
|
* The Original Code is the Venice Web Communities System.
|
|
*
|
|
* The Initial Developer of the Original Code is Eric J. Bowersox <erbo@silcom.com>,
|
|
* for Silverwrist Design Studios. Portions created by Eric J. Bowersox are
|
|
* Copyright (C) 2003 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved.
|
|
*
|
|
* Contributor(s):
|
|
*/
|
|
package com.silverwrist.venice.content;
|
|
|
|
import com.silverwrist.venice.iface.Sidebox;
|
|
|
|
public class StringSidebox implements Sidebox
|
|
{
|
|
/*--------------------------------------------------------------------------------
|
|
* Attributes
|
|
*--------------------------------------------------------------------------------
|
|
*/
|
|
|
|
private String m_title;
|
|
private String m_data;
|
|
|
|
/*--------------------------------------------------------------------------------
|
|
* Constructors
|
|
*--------------------------------------------------------------------------------
|
|
*/
|
|
|
|
public StringSidebox(String data)
|
|
{
|
|
m_title = "Sidebox";
|
|
m_data = data;
|
|
|
|
} // end constructor
|
|
|
|
public StringSidebox(String data, String title)
|
|
{
|
|
m_title = title;
|
|
m_data = data;
|
|
|
|
} // end constructor
|
|
|
|
/*--------------------------------------------------------------------------------
|
|
* Overrides from class Object
|
|
*--------------------------------------------------------------------------------
|
|
*/
|
|
|
|
public String toString()
|
|
{
|
|
return m_data;
|
|
|
|
} // end toString
|
|
|
|
/*--------------------------------------------------------------------------------
|
|
* Implementations from interface Sidebox
|
|
*--------------------------------------------------------------------------------
|
|
*/
|
|
|
|
public String getSideboxTitle()
|
|
{
|
|
return m_title;
|
|
|
|
} // end getSideboxTitle
|
|
|
|
/*--------------------------------------------------------------------------------
|
|
* External operations
|
|
*--------------------------------------------------------------------------------
|
|
*/
|
|
|
|
public void setSideboxTitle(String s)
|
|
{
|
|
m_title = s;
|
|
|
|
} // end setSideboxTitle
|
|
|
|
public String getData()
|
|
{
|
|
return m_data;
|
|
|
|
} // end getData
|
|
|
|
public void setData(String s)
|
|
{
|
|
m_data = s;
|
|
|
|
} // end setData
|
|
|
|
} // end class StringSidebox
|