1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-26 10:52:16 -05:00

ChannelContainer to group a channel object with a channel view

This commit is contained in:
Sebastian Kaspari 2010-03-05 14:21:39 +01:00
parent 3b991b3733
commit 39293ad3fc

View File

@ -0,0 +1,68 @@
/*
Yaaic - Yet Another Android IRC Client
Copyright 2009 Sebastian Kaspari
This file is part of Yaaic.
Yaaic is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Yaaic 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with Yaaic. If not, see <http://www.gnu.org/licenses/>.
*/
package org.yaaic.view;
import android.view.View;
import org.yaaic.model.Channel;
/**
* A channel container to group a channel object with a channel view
*
* @author Sebastian Kaspari <sebastian@yaaic.org>
*/
public class ChannelContainer
{
private Channel channel;
private View canvas;
/**
* Create a new channel container
*
* @param name The channel object
* @param canvas View of the channel
*/
public ChannelContainer(Channel channel, View canvas)
{
this.channel = channel;
this.canvas = canvas;
}
/**
* Get the view of the channel
*
* @return The channel view
*/
public View getCanvas()
{
return canvas;
}
/**
* Get the channel object
*
* @return The channel object
*/
public Channel getChannel()
{
return channel;
}
}