ZenMagick 0.9.6


org.zenmagick.model.layout.ZMBanner

Class ZMBanner

ZMObject
|
+--ZMBanner

public class ZMBanner
extends ZMObject

A single banner.

Author:
DerManoMann
Version:
$Id: ZMBanner.php 2054 2009-03-12 03:41:22Z dermanomann $

Fields inherited from org.zenmagick.ZMObject
properties_
Constructor Summary

ZMBanner()

Create new instance.

Method Summary
int

getId()

Get the banner id.

string

getImage()

Get the banner image.

string

getText()

Get the banner text.

string

getTitle()

Get the banner title.

string

getUrl()

Get the banner URL.

boolean

isActive()

Check if the banner is active.

boolean

isNewWin()

Check if the banner click should open a new window.

void

setActive(boolean status)

Set the banner status.

void

setId(int id)

Set the banner id.

void

setImage(string image)

Set the banner image.

void

setNewWin(boolean newWin)

Set if the banner click should open a new window.

void

setText(string text)

Set the banner text.

void

setTitle(string title)

Set the banner title.

void

setUrl(string url)

Set the banner URL.

Methods inherited from org.zenmagick.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

ZMBanner

public ZMBanner()

Create new instance. /


Method Detail

getId

public int getId()

Get the banner id.

Returns:
The banner id.

getImage

public string getImage()

Get the banner image.

Returns:
The banner image.

getText

public string getText()

Get the banner text.

Returns:
The banner text.

getTitle

public string getTitle()

Get the banner title.

Returns:
The banner title.

getUrl

public string getUrl()

Get the banner URL.

Returns:
The banner URL.

isActive

public boolean isActive()

Check if the banner is active.

Returns:
true if the banner is active.

isNewWin

public boolean isNewWin()

Check if the banner click should open a new window.

Returns:
true if the banner URL should be opened in a new window, false if not.

setActive

public void setActive(boolean status)

Set the banner status.

Parameters:
status - The banner status.

setId

public void setId(int id)

Set the banner id.

Parameters:
id - The banner id.

setImage

public void setImage(string image)

Set the banner image.

Parameters:
image - The banner image.

setNewWin

public void setNewWin(boolean newWin)

Set if the banner click should open a new window.

Parameters:
newWin - true if the banner URL should be opened in a new window, false if not.

setText

public void setText(string text)

Set the banner text.

Parameters:
text - The banner text.

setTitle

public void setTitle(string title)

Set the banner title.

Parameters:
title - The banner title.

setUrl

public void setUrl(string url)

Set the banner URL.

Parameters:
url - The banner URL.

ZenMagick 0.9.6