BrightSide Workbench Full Report + Source Code
bsfinancials-www/src/main/java/org/turro/financials/business/CompanyWrapper.java
Go to the documentation of this file.
1
/*
2
* TurrĂ³ i Cutiller Foundation. License notice.
3
* Copyright (C) 2015 Lluis TurrĂ³ Cutiller <http://www.turro.org/>
4
*
5
* This program is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU Affero General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU Affero General Public License for more details.
14
*
15
* You should have received a copy of the GNU Affero General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
package
org.turro.financials.business;
20
21
import
org.turro.financials.entity.Company;
22
import
org.turro.i18n.I_;
23
28
public
class
CompanyWrapper
extends
org.turro.financials.model.business.
CompanyWrapper
{
29
30
public
void
setEntity
(
Company
company) {
31
entity
= company;
32
}
33
34
public
String
getTabLabel
() {
35
return
getSelfLabel
() +
" #"
+
entity
.getId();
36
}
37
38
public
String
getSelfLabel
() {
39
return
I_
.
get
(
"Company"
);
40
}
41
42
public
String
getTooltiptext
() {
43
try
{
44
return
entity
.getName();
45
}
catch
(Exception ex) {
46
return
null
;
47
}
48
}
49
50
}
org.turro.financials.business.CompanyWrapper.getTabLabel
String getTabLabel()
Definition:
bsfinancials-www/src/main/java/org/turro/financials/business/CompanyWrapper.java:34
org.turro.financials.business.CompanyWrapper.getTooltiptext
String getTooltiptext()
Definition:
bsfinancials-www/src/main/java/org/turro/financials/business/CompanyWrapper.java:42
org.turro.financials.business.CompanyWrapper.setEntity
void setEntity(Company company)
Definition:
bsfinancials-www/src/main/java/org/turro/financials/business/CompanyWrapper.java:30
org.turro.financials.business.CompanyWrapper.getSelfLabel
String getSelfLabel()
Definition:
bsfinancials-www/src/main/java/org/turro/financials/business/CompanyWrapper.java:38
org.turro.financials.entity.Company
Definition:
Company.java:36
org.turro.financials.model.business.CompanyWrapper
Definition:
bsfinancials-core/src/main/java/org/turro/financials/model/business/CompanyWrapper.java:51
org.turro.i18n.I_
Definition:
I_.java:39
org.turro.i18n.I_.get
static String get(String msg)
Definition:
I_.java:41
org.turro.jpa.entity.DaoEntity.entity
T entity
Definition:
DaoEntity.java:45
TurroProjects
Public
BrightSide
bsfinancials-www
src
main
java
org
turro
financials
business
CompanyWrapper.java
Generated on Tue Mar 12 2024 07:01:18 for BrightSide by
1.9.1