2009-06-25 07:16:22 -07:00
|
|
|
|
/*
|
|
|
|
|
* AuthorListEntry.cs
|
|
|
|
|
* Copyright (c) 2007-2009 kbinani
|
|
|
|
|
*
|
|
|
|
|
* This file is part of Boare.Lib.AppUtil.
|
|
|
|
|
*
|
|
|
|
|
* Boare.Lib.AppUtil is free software; you can redistribute it and/or
|
|
|
|
|
* modify it under the terms of the BSD License.
|
|
|
|
|
*
|
|
|
|
|
* Boare.Lib.AppUtil 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.
|
|
|
|
|
*/
|
2010-03-16 20:14:08 -07:00
|
|
|
|
#if JAVA
|
|
|
|
|
package org.kbinani.apputil;
|
|
|
|
|
|
|
|
|
|
import java.awt.*;
|
|
|
|
|
#else
|
|
|
|
|
using System;
|
|
|
|
|
using bocoree.java.awt;
|
2009-06-25 07:16:22 -07:00
|
|
|
|
|
|
|
|
|
namespace Boare.Lib.AppUtil {
|
2010-03-16 20:14:08 -07:00
|
|
|
|
#endif
|
2009-06-25 07:16:22 -07:00
|
|
|
|
|
|
|
|
|
public class AuthorListEntry {
|
2010-03-16 20:14:08 -07:00
|
|
|
|
String m_name;
|
|
|
|
|
int m_style;
|
2009-06-25 07:16:22 -07:00
|
|
|
|
|
2010-03-16 20:14:08 -07:00
|
|
|
|
public AuthorListEntry( String name, int style ) {
|
|
|
|
|
m_name = name;
|
2009-06-25 07:16:22 -07:00
|
|
|
|
m_style = style;
|
|
|
|
|
}
|
|
|
|
|
|
2010-03-16 20:14:08 -07:00
|
|
|
|
#if JAVA
|
|
|
|
|
public AuthorListEntry( String name ){
|
|
|
|
|
this( name, Font.PLAIN );
|
|
|
|
|
#else
|
|
|
|
|
public AuthorListEntry( String name )
|
|
|
|
|
: this( name, Font.PLAIN ) {
|
|
|
|
|
#endif
|
2009-06-25 07:16:22 -07:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public AuthorListEntry() {
|
|
|
|
|
m_name = "";
|
2010-03-16 20:14:08 -07:00
|
|
|
|
m_style = Font.PLAIN;
|
2009-06-25 07:16:22 -07:00
|
|
|
|
}
|
|
|
|
|
|
2010-03-16 20:14:08 -07:00
|
|
|
|
public String getName() {
|
|
|
|
|
return m_name;
|
2009-06-25 07:16:22 -07:00
|
|
|
|
}
|
|
|
|
|
|
2010-03-16 20:14:08 -07:00
|
|
|
|
public int getStyle() {
|
|
|
|
|
return m_style;
|
2009-06-25 07:16:22 -07:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2010-03-16 20:14:08 -07:00
|
|
|
|
#if !JAVA
|
2009-06-25 07:16:22 -07:00
|
|
|
|
}
|
2010-03-16 20:14:08 -07:00
|
|
|
|
#endif
|